stoop
Version:
CSS-in-JS library with type inference, theme creation, and variants support.
14 lines (13 loc) • 565 B
TypeScript
/**
* Theme management hook.
* Provides access to theme state and theme switching functions.
*/
import { type Context } from "react";
import type { ThemeManagementContextValue } from "../types";
/**
* Creates a useTheme hook for a specific theme management context.
*
* @param ThemeManagementContext - React context for theme management
* @returns Hook function that returns theme management context value
*/
export declare function createUseThemeHook(ThemeManagementContext: Context<ThemeManagementContextValue | null>): () => ThemeManagementContextValue;