import { Cursor } from '../types/Cursor'; import { Data } from '../types/Data'; import { Info } from '../types/Info'; import { Key } from '../types/Key'; import { Mouse } from '../types/Mouse'; declare const EndSym: unique symbol; export type End = typeof EndSym; export type Sequence = Array; export type Production = Cursor | Key | Mouse | Info | Data; export type Callback = (chars: Array) => Production; export declare class Parser { private callback; static End: symbol; static isValidFilter(filter: string | number): boolean; private ended; private root; private candidates; private current; private confirmedInput; private unconfirmedInput; private bufferedInput; constructor(callback: (data: Production) => void); register(...args: [...Sequence, Callback]): this; feed(stream: Array | Uint8Array): this; private feedImpl; end(): void; } export {};