import type { FunctionDeclaration, Statement } from '../ast/index.js'; import type { Cursor } from './cursor.js'; export declare function parseStatement(cursor: Cursor): Statement | FunctionDeclaration | undefined; /** * The end of a statement: a newline, and OS1018 for anything before it. * * A line holds at most one statement, so whatever is left over is either a * missing operator or a second statement that lost its newline. It is only * reported when the statement has nothing else wrong with it, because leftovers * are what every other mistake on the line produces and the reader should be * told about the mistake rather than about its wreckage. */ export declare function finishStatement(cursor: Cursor): void; //# sourceMappingURL=statements.d.ts.map