// Generated by dts-bundle-generator v9.5.1

declare const DETERMINISTIC_CONFIDENCE = 0.95;
export interface DetectionResult {
	encoding: string | null;
	confidence: number;
	language: string | null;
	mimeType: string | null;
}
export interface UniversalDetectorOptions {
	langFilter?: number;
	shouldRenameLegacy?: boolean;
	encodingEra?: number;
	maxBytes?: number;
	preferSuperset?: boolean;
	compatNames?: boolean;
	includeEncodings?: Iterable<string> | null;
	excludeEncodings?: Iterable<string> | null;
	noMatchEncoding?: string;
	emptyInputEncoding?: string;
}
declare class UniversalDetector {
	static readonly MINIMUM_THRESHOLD = 0.2;
	static readonly LEGACY_MAP: Readonly<Record<string, string>>;
	private readonly _preferSuperset;
	private readonly _compatNames;
	private readonly _encodingEra;
	private readonly _maxBytes;
	private readonly _includeEncodings;
	private readonly _excludeEncodings;
	private readonly _noMatchEncoding;
	private readonly _emptyInputEncoding;
	private _chunks;
	private _bufferLength;
	private _inputTruncated;
	private _done;
	private _closed;
	private _detection;
	private _buffer;
	constructor(options?: UniversalDetectorOptions);
	feed(byteStr: Uint8Array): void;
	close(): DetectionResult;
	reset(): void;
	get done(): boolean;
	get result(): DetectionResult;
}
declare const EncodingEra: {
	readonly MODERN_WEB: 1;
	readonly LEGACY_ISO: 2;
	readonly LEGACY_MAC: 4;
	readonly LEGACY_REGIONAL: 8;
	readonly DOS: 16;
	readonly MAINFRAME: 32;
	readonly ALL: 63;
};
export type EncodingEra = typeof EncodingEra[keyof typeof EncodingEra];
declare const LanguageFilter: {
	readonly CHINESE_SIMPLIFIED: 1;
	readonly CHINESE_TRADITIONAL: 2;
	readonly JAPANESE: 4;
	readonly KOREAN: 8;
	readonly NON_CJK: 16;
	readonly ALL: 31;
	readonly CHINESE: 3;
	readonly CJK: 15;
};
export type LanguageFilter = typeof LanguageFilter[keyof typeof LanguageFilter];
declare const DEFAULT_MAX_BYTES = 200000;
declare const EVIDENCE_CAP_BYTES: number;
declare const MINIMUM_THRESHOLD = 0.2;
export interface DetectOptions {
	shouldRenameLegacy?: boolean;
	encodingEra?: number;
	chunkSize?: number;
	maxBytes?: number;
	preferSuperset?: boolean;
	compatNames?: boolean;
	includeEncodings?: Iterable<string> | null;
	excludeEncodings?: Iterable<string> | null;
	noMatchEncoding?: string;
	emptyInputEncoding?: string;
}
export interface DetectAllOptions extends DetectOptions {
	ignoreThreshold?: boolean;
}
declare function detect(byteStr: Uint8Array, options?: DetectOptions): DetectionResult;
declare function detectAll(byteStr: Uint8Array, options?: DetectAllOptions): DetectionResult[];
export const VERSION: "4.0.0";
export declare function enableDebug(): void;
export interface IDetectedMap {
	encoding: string | null;
	confidence: number;
	language: string | null;
	mimeType: string | null;
}
export interface IOptionsMap {
	minimumThreshold?: number;
	detectEncodings?: Array<string>;
	excludeEncodings?: Array<string>;
}
declare function detect$1(buffer: string | Uint8Array | ArrayBuffer | ArrayBufferView, options?: IOptionsMap): IDetectedMap;
declare function detectAll$1(buffer: string | Uint8Array | ArrayBuffer | ArrayBufferView, options?: IOptionsMap): IDetectedMap[];
declare const _default: {
	detect: typeof detect$1;
	detectAll: typeof detectAll$1;
	enableDebug: typeof enableDebug;
	VERSION: string;
};

declare namespace chardet {
	export { DEFAULT_MAX_BYTES, DETERMINISTIC_CONFIDENCE, DetectAllOptions, DetectOptions, DetectionResult, EVIDENCE_CAP_BYTES, EncodingEra, LanguageFilter, MINIMUM_THRESHOLD, UniversalDetector, detect, detectAll };
}

export {
	_default as default,
	chardet,
	detect$1 as detect,
	detectAll$1 as detectAll,
};

export {};
