Files
juwan-backend/node_modules/chardet/lib/encoding/index.d.ts
T
2026-02-21 22:48:40 +08:00

15 lines
376 B
TypeScript

import type { EncodingName, Match } from '../match';
export interface Recogniser {
match(input: Context): Match | null;
name(input?: Context): EncodingName;
language?(): string | undefined;
}
export interface Context {
byteStats: number[];
c1Bytes: boolean;
rawInput: Uint8Array;
rawLen: number;
inputBytes: Uint8Array;
inputLen: number;
}