import { ReactNode } from 'react'; /** * Optional locale boundary for AI Kit strings, formatting, and React Aria. * Without it, AI Kit renders English. Typically mounted inside {@link CartoTheme}. */ export type AiKitIntlProviderProps = { /** Kit strings and formatting apply only to this subtree. */ children: ReactNode; /** * BCP-47 locale (e.g. `"fr-FR"`) for AI Kit strings and date/time * formatting. Also sets React Aria's locale so timestamps and labels stay * in sync. * * Omit to inherit the ambient React Aria locale — the consumer's * `I18nProvider`, or the browser default when none is set. */ locale?: string; /** * Overrides for AI Kit strings, keyed by message ID (e.g. * `"ai-kit.messageToolbar.copy"`). Merged over the active catalog; extra * keys are unused. */ messages?: Record; };