import type { DiagnosticSink } from '../diagnostics/index.js'; import type { SourceFile } from '../source/index.js'; import type { Token } from '../tokens/index.js'; /** * Reads a file into tokens, reporting what it cannot read and carrying on. * * Nothing here throws. One character the language does not have should cost the * reader that character and not the rest of the file, so every lexical error is * reported against its own span and the scan resumes at the next thing it can * recognise. */ export declare function lex(file: SourceFile, diagnostics: DiagnosticSink): readonly Token[]; //# sourceMappingURL=lexer.d.ts.map