import { PropsWithChildren, RefObject } from 'react'; export type UnityTheme = 'legacy' | 'rebrand'; interface UnityThemeContextValue { theme: UnityTheme; setTheme: (theme: UnityTheme) => void; } export interface UnityThemeProviderProps { /** Initial theme. Can be changed at runtime via `useUnityTheme().setTheme`. */ theme?: UnityTheme; /** * Element on which `data-uy-theme` is set. * - `undefined` (default): uses `document.documentElement` (``) * - A React ref: uses the referenced element * - A CSS selector string: uses `document.querySelector(selector)` * @default document.documentElement */ target?: RefObject | string; } export declare function UnityThemeProvider({ theme: initialTheme, target, children, }: PropsWithChildren): import("react/jsx-runtime").JSX.Element; /** * Returns the current theme and a setter to change it at runtime. * Returns `"legacy"` with a no-op setter when used outside a provider. */ export declare function useUnityTheme(): UnityThemeContextValue; export {};