/** * Collect a type annotation string from the token stream. * Reads tokens until a delimiter is found: `=`, `,`, `)`, `->`, `;`, or `end`. * Handles balanced parens/brackets/braces so nested types work. * * Used by parseBindingTarget (for `let x: T = ...` and `(a: T) -> ...`) * and parseLambdaFunction (for `(a): T -> ...`). */ import type { ParserContext } from '../ParserContext'; export declare function collectTypeAnnotation(ctx: ParserContext, options?: { stopAtArrow?: boolean; stopAtRParen?: boolean; }): string; /** * Check if the current token is `:` indicating a type annotation. * Only valid in the symbol binding case (not inside object patterns, * where `:` means nested destructuring — that's handled separately). */ export declare function isTypeAnnotationColon(ctx: ParserContext): boolean;