type Theme = 'dark' | 'light'; type UpdateTheme = (theme: Theme) => void; /** @private */ declare const DEFAULT_THEME: Theme; /** @private */ declare const THEME_ATTRIBUTE = "data-mode"; /** @private */ declare const THEME_KEY = "theme"; /** @private */ declare const SYS_DARK_MEDIA_QUERY = "(prefers-color-scheme: dark)"; /** * Returns the current theme and a function to update the current theme * * The reason the implementation of this hook is rather convoluted is for * cases where the theme is updated outside this hook */ declare function useTheme(): readonly [Theme, UpdateTheme]; export { DEFAULT_THEME, SYS_DARK_MEDIA_QUERY, type Theme, THEME_ATTRIBUTE, THEME_KEY, useTheme }; //# sourceMappingURL=useTheme.d.ts.map