import { Usage } from "./usage.cjs"; import { ExecutionContext, ParserContext } from "./internal/parser.cjs"; //#region src/execution-context.d.ts /** * Appends a child parser segment to the current execution path. * @internal */ declare function withChildExecPath(exec: ExecutionContext | undefined, segment: PropertyKey): ExecutionContext | undefined; /** * Merges child-owned execution fields back into the parent execution context. * @internal */ declare function mergeChildExec(parent: ExecutionContext | undefined, child: ExecutionContext | undefined): ExecutionContext | undefined; /** * Creates a child parser context while keeping flat and nested execution data * aligned. * @internal */ declare function withChildContext(context: ParserContext, segment: PropertyKey, state: TChildState, usage?: Usage): ParserContext; //#endregion export { mergeChildExec, withChildContext, withChildExecPath };