import type { FunctionDeclaration } from '../ast/index.js'; import type { Cursor } from './cursor.js'; /** * `fn name(parameters) => body`, language.md 11.1. * * The body is an expression when it is written after the `=>` on one line, and * a block when the `=>` ends the line. Both forms exist because the one line * form needs the implicit return and an early exit needs the explicit one. * * The `=>` is two tokens. Section 3.12 does not list it among the punctuation, * so it arrives as an `=` and a `>` that touch, and touching is what tells it * from a comparison: the lexer suppresses its continuation rule for that exact * pair, and the same adjacency test is what matches it here. */ export declare function parseFunctionDeclaration(cursor: Cursor): FunctionDeclaration; //# sourceMappingURL=functions.d.ts.map