import type { IfStatement } from '../ast/index.js'; import type { Cursor } from './cursor.js'; /** * `if`, `else if` and `else`, language.md 10.2. * * The branches are kept beside each other rather than nested, because `else if` * is two words on one line and does not increase indentation, so a reader sees * one statement with several arms and every pass over the tree should see the * same thing. * * An `else` pairs with the `if` at its own indentation. The lexer has already * closed the blocks between them, so the `else` that arrives here is the one * that belongs to this `if`; what is left to check is that the two line up, and * OS1016 when they do not. */ export declare function parseIfStatement(cursor: Cursor): IfStatement; //# sourceMappingURL=branches.d.ts.map