import { type LoadedNativeGrammarSet } from "./grammar-loaders.js"; import type { GrammarArtifact } from "./types.js"; export type ParserReadinessStatus = "pending" | "validating" | "ready" | "failed"; export interface ParserReadinessDiagnostic { code: string; message: string; } export interface ParserReadinessSnapshot { status: ParserReadinessStatus; requiredExtensions: number; validatedExtensions: number; errors: readonly ParserReadinessDiagnostic[]; checkedAt?: string; } export declare class ParserReadinessError extends Error { readonly readiness: ParserReadinessSnapshot; readonly code = "PARSER_NOT_READY"; constructor(readiness: ParserReadinessSnapshot); } type GrammarLoader = (artifacts: readonly GrammarArtifact[]) => Promise; /** Idempotently validate every required extension in one process-wide flight. */ export declare function validateAllGrammars(): Promise; export declare function getParserReadiness(): ParserReadinessSnapshot; /** Return the startup-validated immutable grammar cache; never loads modules. */ export declare function getValidatedNativeGrammarSet(): LoadedNativeGrammarSet; export declare function assertParserReadyForIndexing(): Promise; /** Isolated-test seam; production code never calls this. */ export declare function resetParserReadinessForTests(loader?: GrammarLoader): void; export {}; //# sourceMappingURL=parser-readiness.d.ts.map