import { PDFBufferIterable } from './index'; export declare type MachineCallback = (match?: RegExpMatchArray) => T; export declare type MachineRule = [RegExp, MachineCallback]; export declare function MachineRule(regexp: RegExp, callback: MachineCallback): MachineRule; export interface MachineStateConstructor { new (iterable: PDFBufferIterable, encoding?: string, peekLength?: number): MachineState; } export declare class MachineState { protected iterable: PDFBufferIterable; protected encoding: string; protected peekLength: number; protected value: I; protected rules: MachineRule[]; constructor(iterable: PDFBufferIterable, encoding?: string, peekLength?: number); private readonly name; pop(): T; ignore(): T; attachState(SubState: MachineStateConstructor): MachineState; read(): T; }