import * as react_jsx_runtime from 'react/jsx-runtime'; import * as React from 'react'; import { PropsWithChildren } from 'react'; import { UseThemeProps, ThemeProviderProps, BaseTheme, ComputedTheme } from './types.cjs'; declare const colorSchemes: readonly ["light", "dark"]; declare const MEDIA = "(prefers-color-scheme: dark)"; declare const isServer: boolean; declare const ThemeContext: React.Context; declare const saveToLS: (key: string, value: string) => void; declare const getFromLS: (key: string, fallback: string) => string; /** * Calculate the actual theme name */ declare const computeTheme: (baseTheme: BaseTheme, isLiquid: boolean, systemIsDark: boolean) => ComputedTheme; /** * Hook to read and update the theme state from `ThemeProvider`. * Throws if used outside a provider. */ declare function useTheme(selector?: (v: UseThemeProps) => T): T extends void ? UseThemeProps : T; /** * Provides theme context and DOM attribute synchronization for theming. * Nesting providers is supported; inner providers will passthrough. */ declare const ThemeProvider: (props: PropsWithChildren) => react_jsx_runtime.JSX.Element; declare const defaultThemes: string[]; /** * Internal component implementing theme persistence, system preference, * and DOM attribute updates. */ declare const Theme: ({ forcedTheme, disableTransitionOnChange, enableSystem, enableColorScheme, storageKey, defaultBaseTheme, defaultIsLiquid, attribute, value, children, nonce, scriptProps, }: PropsWithChildren) => react_jsx_runtime.JSX.Element; declare const getTheme: (key: string, fallback: string) => string; declare const disableAnimation: (nonce?: string) => () => void; declare const getSystemTheme: (e?: MediaQueryList | MediaQueryListEvent) => "liquid-light" | "liquid-dark"; export { MEDIA, Theme, ThemeContext, ThemeProvider, colorSchemes, computeTheme, defaultThemes, disableAnimation, getFromLS, getSystemTheme, getTheme, isServer, saveToLS, useTheme };