import { type AltEditorLiteLanguage } from '../core/alt-editor-lite-language.js'; /** Fetch settings and resource limits for an external editor language. */ export interface EditorLanguageLoadOptions extends RequestInit { readonly maxResourceBytes?: number; } /** * Returns the canonical form of a BCP 47 locale identifier. * * @param localeName - Locale identifier to normalize. * @returns The canonical locale identifier. * @throws EditorConfigurationError when the identifier is invalid. */ export declare function normalizeLocaleName(localeName: string): string; /** * Validates external language data and merges it with the English fallback. * * @param value - Parsed language resource. * @returns Complete validated language data. */ export declare function resolveEditorLanguageResource(value: unknown): Readonly; /** * Loads a JSON language resource and combines it with the English fallback. * * The editor constructor remains synchronous: await this function before * creating an editor instance. * * @param resource - URL or request for a JSON language resource. * @param options - Optional Fetch API settings and response size limit. * @returns Complete validated language data. * @throws EditorConfigurationError when maxResourceBytes is invalid. * @throws EditorLanguageLoadError when the request or validation fails. */ export declare function loadEditorLanguage(resource: RequestInfo | URL, options?: EditorLanguageLoadOptions): Promise>;