import type { Token, TokenKind } from '../tokens/index.js'; /** * Whether the last two tokens are the `=>` of a function declaration. * * Section 3.12 does not list `=>` among the punctuation, so it arrives as an * `=` and a `>` that touch. Both readings need saying apart here: a line whose * last token is `>` continues onto the next line, and a line that ends in `=>` * is a function header whose body is the indented block below it, so it must * not. */ export declare function endsWithArrow(tokens: readonly Token[]): boolean; /** Whether the statement so far promises more, so the next line belongs to it. */ export declare function continuesLine(tokens: readonly Token[]): boolean; /** * Whether a statement that begins with this token and ends this way opens a * block. * * `fn` is the one header with a form that fits on one line: with its body after * the `=>` it opens nothing, and with nothing after the `=>` the block below it * is the body (3.10, 11.1). Every other header opens a block always, because * there is no statement separator to end a one-line body with. */ export declare function opensBlock(firstKind: TokenKind, arrowAtEnd: boolean): boolean; //# sourceMappingURL=statements.d.ts.map