import React from "react"; export declare type ActionType = "SetPref" | "RemovePref" | "SetLocalPref" | "RemoveLocalPref"; declare type State = { key: string; value?: unknown; }; declare type Action = { type: ActionType; payload: State; }; declare type Dispatch = (action: Action) => void; declare type UserPreferencesProviderProps = { children: React.ReactNode; }; interface ContextProps { preferences: State; dispatch: Dispatch; } export interface PreferencesContextProps { preferences: { [key: string]: unknown; }; getPref: (key: string) => unknown; setPref: (key: string, value: unknown) => void; } declare const UserPreferencesProvider: ({ children }: UserPreferencesProviderProps) => JSX.Element; declare const useUserPreferences: () => ContextProps; export { useUserPreferences, UserPreferencesProvider }; //# sourceMappingURL=preferences-context.d.ts.map