import type { TokenLibraryDiagnostic, TokenLibraryDocument, TokenLibraryEngine, TokenLibraryEngineOptions, TokenLibraryValidationResult, TokenValueEditability, TokenValueResolution } from './contracts.js'; export declare class TokenLibraryValidationError extends Error { readonly diagnostics: readonly TokenLibraryDiagnostic[]; constructor(diagnostics: readonly TokenLibraryDiagnostic[]); } /** Validate authored syntax boundaries and the complete token/mode reference graph. */ export declare function validateTokenLibraryDocument(input: unknown): TokenLibraryValidationResult; /** A lightweight lookup for an already validated library; returned data is detached and frozen. */ export declare function resolveTokenLibraryValue(document: TokenLibraryDocument, tokenId: string, modeId: string): TokenValueResolution; export declare function tokenValueEditability(document: TokenLibraryDocument, tokenId: string, modeId: string): TokenValueEditability; /** Separate library sessions share the existing document transaction and history implementation. */ export declare function createTokenLibraryEngine(document: TokenLibraryDocument, options?: TokenLibraryEngineOptions): TokenLibraryEngine; export declare function reopenTokenLibrary(serialized: string, options?: TokenLibraryEngineOptions): TokenLibraryEngine;