You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wanderhome-foundry-system/node_modules/chardet/lib/encoding/index.d.ts

15 lines
376 B
TypeScript

3 weeks ago
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;
}