/** * Theme System * * Provides React Context for theming throughout the UI. * * Themes are authored in the ExtendedTheme JSON shape (semantic tokens) and * loaded via ThemeLoader; the React tree consumes the legacy `Theme` shape * via `useTheme()`. ExtendedTheme is converted at the boundary using * `toLegacyColors`. The dual-context system (useExtendedTheme / * useSemanticColors / useThemeAccess / ExtendedThemeProvider) was retired in * v2.11.13 — components that need ExtendedTheme metadata (e.g. theme * submission) read directly from `getThemeLoader()`. * * @since v1.57.0 (extended types added) * @since v2.11.13 (extended React context retired; legacy context only) */ import React, { type ReactNode } from 'react'; import type { ThemeContextValue } from './types.js'; export * from './types.js'; export * from './presets/index.js'; export * from './gradient-presets.js'; export * from './theme-types.js'; export * from './theme-validator.js'; export * from './theme-loader.js'; export * from './default-themes.js'; export * from './color-utils.js'; export * from './contrast-checker.js'; export * from './color-blindness.js'; export * from './theme-marketplace.js'; export * from './theme-gallery-loader.js'; /** * Theme Provider Props */ export interface ThemeProviderProps { children: ReactNode; initialTheme?: string; } /** * Theme Provider Component * * Note: Custom color overrides have been removed in v1.15.0. * Use bundled theme presets only (default, dark, light, monokai, nord). */ export declare function ThemeProvider({ children, initialTheme }: ThemeProviderProps): React.ReactElement; /** * Hook to access theme context */ export declare function useTheme(): ThemeContextValue; //# sourceMappingURL=index.d.ts.map