import type { Combinator } from '../types.ts'; export declare function transform(combinator: Combinator, fn: (value: T, span: { start: number; end: number; }) => U): Combinator; export declare function trivia(combinator: Combinator): Combinator; /** * Build trivia whose category labels are part of its recognition structure. * * Use this for a grammar that exposes selected root trivia. In contrast to * `trivia(label('categoryA', broadRegex))`, every category here owns one arm, * so one selected category cannot be silently consumed under another category's * broad matcher. * `rootTrivia: { select }` rejects ordinary scoped trivia * unless that scope explicitly declares itself opaque. */ export declare function classifiedTrivia(arms: Readonly>>): Combinator; /** * Attach a string label to a parser arm (e.g. trivia `choice` branches). * Parse behavior is unchanged; the label is metadata for tooling and future * trivia-kind capture (`'whitespace'`, `'blockComment'`, …). */ export declare function label(name: string, combinator: Combinator): Combinator; /** * Capture a named parse result for the nearest enclosing node() builder. * Parse behavior and the normal returned value are unchanged. */ export declare function field(name: string, combinator: Combinator): Combinator; //# sourceMappingURL=map.d.ts.map