import { NGrammar } from './grammarNormalized'; import type { TokenizedLine, TokenizedLineResult } from './types'; import type { Parser, ParseResult } from '@cspell/cspell-types/Parser'; import { Grammar } from './grammar'; export interface DocumentParser { parse: (firstLine: string) => TokenizedLineResult; } export declare function parseDocument(grammar: NGrammar, _filename: string, content: string, emitter?: (line: string) => void): void; declare function mapTokenizedLines(itl: Iterable): ParseResult['parsedTexts']; export declare function createParser(grammar: Grammar, name: string, transform?: typeof mapTokenizedLines): Parser; export {}; //# sourceMappingURL=parser.d.ts.map