import { AgencyPreferencesCamel } from '../models'; import { PropsWithChildren } from 'react'; import { DefaultThemeSettings } from '../state'; import { SerializableAgency } from '../serializers'; /** * Contains agency-specific, app wide state used in both admin and themes. As the * state comes from agency data, no setters are exposed and state should be initialised * via props passed to the provider. Ensure data fetched via server components * is serializable to JSON before passing as props to the `AppProvider`. * * @example * ```tsx * const agency = await Agency.current(); * const themePreferences = agency.preferences; * const themeSettingsConfig = await ThemeSettingsConfig.findOneBy({ * agencyId: agency.id, * theme: globalConfig.theme, * }); * * ... * * * * * ``` */ export default function AppProvider({ agency, themePreferences, themeSettings, children, }: { agency: SerializableAgency; themePreferences: AgencyPreferencesCamel | null; themeSettings: DefaultThemeSettings; } & PropsWithChildren): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=app-provider.d.ts.map