export declare type Matcher = { (input: string): Boolean; }; export default function createScanner(text: string): { getCapture(index: number): string; peek: { (count?: number): string; (pattern: RegExp): string; (pattern: string, limit?: number): string; (matcher: (input: string) => Boolean): string; }; next: { (count?: number): string; (pattern: RegExp): string; (pattern: string, limit?: number): string; (matcher: (input: string) => Boolean): string; }; nextUntil: (pattern: string | RegExp) => string; eos(): boolean; moveIndex: (move: number) => void; getIndex(): number; setIndex(newIndex: number): void; rest: () => string; };