import type { Block } from '../ast/index.js'; import type { Span } from '../span/index.js'; import type { Cursor } from './cursor.js'; /** * The indented lines under a header, language.md 3.10. * * The lexer has already decided where a block begins and ends, so this reads an * `indent`, statements, and a `dedent`, and the one rule it owns is what to do * when the `indent` is not there: OS1010, reported against the header rather * than against the line that failed to be a body, because the header is what * the reader has to change. * * The statement loop insists on progress. A rule that reports without consuming * anything would otherwise spin on the token it could not read, and a compiler * that hangs on a malformed file is worse than one that gives up on it. */ export declare function parseBlock(cursor: Cursor, header: string, at: Span): Block; //# sourceMappingURL=blocks.d.ts.map