import type { HTMLAttributes, Ref } from 'react'; import type { NeoMode, NeoTheme } from './themes'; export interface NeoContextValue { theme: NeoTheme; /** `undefined` means the theme renders in its native scheme. */ mode: NeoMode | undefined; } export interface NeoProviderProps extends HTMLAttributes { /** A built-in theme (`classic`, `tech`, `swiss`, `y2k`, `riso`) or the name of your own theme block. */ theme: NeoTheme; /** Force `light` / `dark`, follow the OS with `system`, or omit for the theme's native scheme. */ mode?: NeoMode; /** Element to render. Defaults to `div`. */ as?: 'div' | 'main' | 'section' | 'article' | 'span'; ref?: Ref; } /** * Scopes a theme to its subtree: renders `
`, * paints the theme's background, text color and font, and exposes `{ theme, mode }` * through `useTheme()`. Providers nest — an inner provider is a self-contained island. */ export declare function NeoProvider({ theme, mode, as, className, children, ...rest }: NeoProviderProps): import("react").JSX.Element; /** The nearest provider's `{ theme, mode }`, or `undefined` outside any provider. */ export declare function useTheme(): NeoContextValue | undefined;