import { type ReactNode } from "react"; import { type AgendaMessages, type AgendaMessagesInput, type AgendaSupportedLocale, type TimeZone } from "@zigoschedule/scheduler-core"; /** * Calendar-wide configuration. * * The pure layer (`core/`, `utils/`, `engine/`) never reads this; every one of * those functions takes the time zone as an argument, which is what keeps them * testable without a React tree. This context exists purely so the component * layer does not have to thread the same value through thirty props. * * Read it with `useAgendaConfig()`, or `useAgendaTimeZone()` when the zone is * all you need. */ export type AgendaConfig = { /** IANA zone the business operates in, e.g. "America/Manaus". */ timeZone: TimeZone; /** Locale used for built-in labels and Intl formatting. */ locale: AgendaSupportedLocale; /** Built-in UI copy, already resolved for the locale and host overrides. */ messages: AgendaMessages; }; export type AgendaConfigProviderProps = { children: ReactNode; /** * Defaults to `DEFAULT_TIME_ZONE`. An invalid or fixed-offset value falls back * to the default rather than silently shifting every appointment on screen; * see `isValidTimeZone`. */ timeZone?: TimeZone; /** UI locale. Unsupported regional variants fall back by language. */ locale?: string; /** Optional host overrides for product-specific copy. */ messages?: AgendaMessagesInput; }; export declare function AgendaConfigProvider({ children, timeZone, locale, messages, }: AgendaConfigProviderProps): import("react").JSX.Element; /** * Configuration for the surrounding calendar. * * Falls back to the defaults when there is no provider, so a component can be * rendered in isolation, in a test or a Storybook story, without ceremony. */ export declare function useAgendaConfig(): AgendaConfig; /** Shorthand for `useAgendaConfig().timeZone`. */ export declare function useAgendaTimeZone(): TimeZone; export declare function useAgendaLocale(): AgendaSupportedLocale; export declare function useAgendaMessages(): AgendaMessages;