import { MutableRefObject } from 'react'; import { Locale } from '../../i18n/types'; export type AgGridLocaleText = Record; /** * AG Grid bakes these pagination labels into the panel HTML at create time. * Updating localeText/getLocaleText alone will not refresh them — we patch * these keys into the DOM after setAgGridLocaleText(). */ export declare const AG_GRID_PAGINATION_LOCALE_KEYS: readonly ["page", "to", "of", "firstPage", "previousPage", "nextPage", "lastPage"]; export declare function getAgGridLocaleTextForLocale(locale: Locale): AgGridLocaleText; /** * Update the mutable key→value object that getLocaleText reads from. * Call this when the app locale changes (instead of remounting the grid). */ export declare function setAgGridLocaleText(localeTextRef: MutableRefObject, locale: Locale): AgGridLocaleText; interface GetLocaleTextParams { key: string; defaultValue: string; variableValues?: string[]; } /** * AG Grid getLocaleText callback — looks up one key at a time from the * object managed by setAgGridLocaleText. */ export declare function createAgGridGetLocaleText(localeTextRef: MutableRefObject): (params: GetLocaleTextParams) => string; /** * Apply the pagination keys from the current localeText object onto the * already-rendered AG Grid paging panel (no grid remount). */ export declare function syncAgGridPaginationLocale(container: HTMLElement | null, localeText: AgGridLocaleText | null | undefined): void; export {}; //# sourceMappingURL=agGridLocale.d.ts.map