2020-03-30 03:42:04 +00:00
|
|
|
import { Match } from '../match';
|
|
|
|
|
|
|
|
export interface Recogniser {
|
|
|
|
match(input: Context): Match | null;
|
|
|
|
name(input?: Context): string;
|
2021-10-19 10:21:29 +00:00
|
|
|
language?(): string | undefined;
|
2020-03-30 03:42:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface Context {
|
2021-10-19 09:27:41 +00:00
|
|
|
byteStats: number[];
|
|
|
|
c1Bytes: boolean;
|
|
|
|
rawInput: Uint8Array;
|
|
|
|
rawLen: number;
|
|
|
|
inputBytes: Uint8Array;
|
|
|
|
inputLen: number;
|
2020-03-30 03:42:04 +00:00
|
|
|
}
|