/** @internal Core parser pipeline — line parsing, tree building, and orchestration. */ import { type KernRuntime } from './runtime.js'; import type { ParseResult } from './types.js'; /** Slice 7 v2 — pure-data callers (browser playground, tests) can omit the * `resolveImport` callback. CLI supplies it to enable cross-module * recognition for `?`/`!` propagation against fns imported via `use`. */ export interface ParseOptions { resolveImport?: import('./parser-validate-propagation.js').ImportResolver; /** Slice 0.9 — closure-classifier capability for block-bodied arrow * expression props. Browser/default callers omit it and any block-bodied * arrow in an expression prop fails closed; Node/codegen callers inject * `typescriptClosureClassifier` (from `@kernlang/core/node`) to keep current * behavior. The type is browser-safe (no `typescript` dependency). */ closureClassifier?: import('./closure-classifier.js').ClosureClassifier; /** Slice 0.9 — native-eligibility classifier for the advisory * `NATIVE_KERN_ELIGIBLE` hint on raw `<<<…>>>` handler bodies. Requires the * TypeScript-AST walker, so browser/default callers omit it (the advisory * hint is skipped) and Node callers inject `classifyHandlerBodyAst` (from * `@kernlang/core/node`). Browser-safe type (no `typescript` dependency). */ nativeEligibilityClassifier?: import('./native-eligibility.js').HandlerBodyClassifier; } /** @internal Single internal entry that wires parseLines → buildTree → computeEndSpans. */ export declare function parseInternal(source: string, asDocument: boolean, runtime?: KernRuntime, options?: ParseOptions): ParseResult;