/** * IANA timezone (e.g. the org's `America/Mexico_City`) used to render * datetime/timestamp cells. `undefined` outside a provider → renderers fall * back to the viewer's browser zone (legacy behaviour). */ export declare const TimeZoneContext: import("react").Context; /** Reads the nearest org timezone (undefined outside a provider). */ export declare const useTimeZone: () => string | undefined; /** * Org ISO-4217 currency (org config, like the timezone) used as the fallback * for money cells/fields that don't carry an explicit per-column currency. * `undefined` outside a provider → renderers fall back to 'USD'. */ export declare const CurrencyContext: import("react").Context; /** Reads the nearest org currency (undefined outside a provider). */ export declare const useCurrency: () => string | undefined; /** * Org default tax rate as a fraction (e.g. `0.16`), from the org's fiscal * config. Document line editors use it when the picked product carries no rate * of its own. `undefined` outside a provider → lines start at 0. */ export declare const TaxRateContext: import("react").Context; /** Reads the nearest org default tax rate (undefined outside a provider). */ export declare const useOrgTaxRate: () => number | undefined; /** * Number-locale overrides keyed by UI language: `{ es: 'es-MX' }` makes a * Spanish UI format numbers and money the Mexican way (11,461.50) instead of * Intl's bare `'es'` (Spain: 11.461,50). Keys match the full language * (`'es-mx'`) first, then its base (`'es'`), case-insensitive. `undefined` * outside a provider → numbers use the UI language as-is (legacy behaviour). */ export type NumberLocales = Readonly>; export declare const NumberLocalesContext: import("react").Context> | undefined>; /** * Pure resolver: the Intl locale numbers should use for `language` given the * org's overrides. Returns `language` unchanged when nothing matches. */ export declare function resolveNumberLocale(language: string | undefined, locales: NumberLocales | undefined): string | undefined; /** * The Intl locale for number/currency formatting of the current UI language * (`language`, usually `i18n.language`), honouring the nearest * `OrgRuntimeProvider numberLocales`. */ export declare function useNumberLocale(language: string): string; export declare function useNumberLocale(language: string | undefined): string | undefined; /** * How the SYSTEM actor (records created or changed by a seed, an event, an * agent or an automation — `created_by` empty or `SYSTEM_ACTOR_ID`) is * presented: e.g. `{ name: 'Gobi', avatarUrl: '/brand/gobi.png' }`. Read by * creator/created_by table cells, AuditInfo, ActivityTimeline, RecordHistory * and the record dialog. `undefined` outside a provider → the localized * "Sistema"/"System" label and initials (legacy behaviour). */ export interface SystemActor { /** Display name (already localized). */ name?: string; /** Absolute URL or app path of the avatar image; used as-is. */ avatarUrl?: string; } export declare const SystemActorContext: import("react").Context; /** Reads the nearest system-actor presentation (undefined outside a provider). */ export declare const useSystemActor: () => SystemActor | undefined; //# sourceMappingURL=org-runtime-context.d.ts.map