import { DetailedHTMLProps, ScriptHTMLAttributes } from 'react';
type DataAttribute = `data-${string}`;
interface ScriptProps extends DetailedHTMLProps, HTMLScriptElement> {
[dataAttribute: DataAttribute]: never;
}
type BaseTheme = "dark" | "light" | "system";
/** Computed actual theme type */
type ComputedTheme = "light" | "dark" | "liquid-light" | "liquid-dark";
interface UseThemeProps {
/** Base theme color */
baseTheme: BaseTheme;
/** Set base theme color */
setBaseTheme: (theme: BaseTheme) => void;
/** Whether liquid mode is enabled */
isLiquid: boolean;
/** Toggle liquid mode */
toggleLiquid: () => void;
/** Computed actual theme name */
computedTheme: ComputedTheme;
/** Resolved theme (handles system theme) */
resolvedTheme: ComputedTheme;
/** System theme preference (only valid when baseTheme is system) */
systemTheme?: "dark" | "light" | undefined;
/** Forced theme name */
forcedTheme?: string | undefined;
/** Local storage key */
storageKey: string;
}
type Attribute = DataAttribute | "class";
interface ThemeProviderProps {
/** Default base theme */
defaultBaseTheme?: BaseTheme | undefined;
/** Default liquid mode enabled */
defaultIsLiquid?: boolean | undefined;
/** Forced theme name */
forcedTheme?: string | undefined;
/** Enable system theme detection */
enableSystem?: boolean | undefined;
/** Disable CSS transitions when switching themes */
disableTransitionOnChange?: boolean | undefined;
/** Enable color scheme indication for built-in UI elements */
enableColorScheme?: boolean | undefined;
/** Local storage key prefix */
storageKey?: string | undefined;
/** HTML attribute name */
attribute?: Attribute | Attribute[] | undefined;
/** Theme name to attribute value mapping */
value?: Record | undefined;
/** CSP nonce */
nonce?: string;
/** Script tag properties */
scriptProps?: ScriptProps;
}
export type { Attribute, BaseTheme, ComputedTheme, ThemeProviderProps, UseThemeProps };