/**
 * Theme context for sharing theme state and configuration.
 *
 * Used by:
 * - ThemeProvider to provide theme state
 * - useTheme hook to access theme state
 * - MetaTags to check if theme is enabled and render script
 */
import { type Context } from "react";
import type { ResolvedThemeConfig, ThemeContextValue } from "./types.js";
/**
 * React context for theme state
 * null when theme is not enabled in router config
 */
export declare const ThemeContext: Context<ThemeContextValue | null>;
/**
 * Initialize theme config synchronously for SSR.
 * Called before rendering to populate state for MetaTags.
 *
 * @param config - Theme config from router, or null if theme is disabled
 */
export declare function initThemeConfigSync(config: ResolvedThemeConfig | null): void;
/**
 * Get theme config for SSR/hydration.
 * Used by MetaTags to render the theme script.
 *
 * @returns Theme config if available, null otherwise
 */
export declare function getSSRThemeConfig(): ResolvedThemeConfig | null;
/**
 * Get theme context (internal use)
 * Returns null if theme is not enabled
 */
export declare function useThemeContext(): ThemeContextValue | null;
/**
 * Get theme context, throwing if not available
 * Use this in useTheme hook
 */
export declare function requireThemeContext(): ThemeContextValue;
//# sourceMappingURL=theme-context.d.ts.map