import type { DeepPartial } from './editor-values.js'; /** * User-facing text used by the editor. * * English is the built-in source locale. Nested partial overrides are merged * with this complete shape. */ export interface AltEditorLiteLanguage { /** BCP 47 locale used for local matching and sorting. */ readonly locale: string; /** Labels for editor actions. */ readonly actions: { readonly create: string; readonly edit: string; readonly remove: string; readonly refresh: string; readonly submit: string; readonly cancel: string; readonly close: string; }; /** Titles and explanatory dialog text. */ readonly dialog: { readonly createTitle: string; readonly editTitle: string; readonly batchEditTitle: string; readonly removeTitle: string; readonly removeCount: string; readonly removeMessage: string; }; /** Explanations used by optional DataTables Buttons integration. */ readonly buttons: { readonly createUnavailable: string; readonly selectUnavailable: string; readonly busy: string; readonly editSelection: string; readonly batchEditUnavailable: string; readonly removeSelection: string; readonly initialize: string; }; /** Native and custom validation fallbacks. */ readonly validation: { readonly required: string; readonly invalid: string; readonly unique: string; }; /** Text used by multi-record editing controls and feedback. */ readonly batchEdit: { readonly commonValue: string; readonly multipleValues: string; readonly setCommonValue: string; readonly restoreIndividualValues: string; readonly uniqueRestriction: string; readonly fileRestriction: string; readonly validationInvalid: string; readonly selectionRequired: string; }; /** Text used by SearchSelect fields. */ readonly searchSelect: { readonly placeholder: string; readonly searchPlaceholder: string; readonly noResults: string; readonly clear: string; readonly loading: string; readonly loadError: string; readonly searchTooShort: string; }; /** Labels and announcements exposed to assistive technology. */ readonly accessibility: { readonly searchSelectInstructions: string; readonly searchSelectResults: string; readonly searchSelectSelection: string; }; /** Text announced or displayed by inline cell editing. */ readonly inline: { readonly editCell: string; readonly unavailable: string; readonly unsupportedField: string; readonly targetUnavailable: string; }; /** Titles used by operation and validation alerts. */ readonly alert: { readonly validationTitle: string; readonly operationTitle: string; }; /** Operation-level error fallbacks. */ readonly errors: { readonly generic: string; readonly fileCount: string; readonly fileSize: string; readonly selectionRequired: string; readonly singleSelectionRequired: string; readonly targetUnavailable: string; }; } /** * Nested language overrides merged on top of the English fallback. */ export type PartialEditorLanguage = DeepPartial; /** * Language data loaded from an application or external JSON resource. */ export type EditorLanguageDefinition = Omit & { /** BCP 47 locale associated with the translated text. */ readonly locale: string; }; /** * Complete built-in English language. */ export declare const ENGLISH_LANGUAGE: Readonly; /** * Merges nested language overrides with the complete English fallback. * * @param language - Consumer-provided language overrides. * @returns A complete readonly language object. */ export declare function resolveLanguage(language: Readonly | undefined): Readonly;