import { type Context } from "react";
import { type GrokDataViz, type GrokPalette, type GrokTextStyle, type GrokWeightScale } from "./tokens.js";
export type { GrokDataViz, GrokPalette, GrokTextStyle, GrokWeightScale } from "./tokens.js";
/**
 * Grok page tokens for custom styling. Always the Grok look, whatever app
 * shows the canvas: `kind` follows the viewer's light/dark mode, and the page
 * paper (`bg.base`) follows the surface the host paints around the canvas, so
 * the page sits flush in its sheet or stage. Ink, accents, and type never
 * change.
 */
export interface GrokTheme extends GrokPalette {
    /** Viewer polarity. High-contrast modes fold into `light` / `dark`. */
    readonly kind: "light" | "dark";
    readonly font: {
        /** Sans stack: XVF when the host embeds it, else the system face. */
        readonly family: string;
        readonly mono: string;
        /** Page title, 30/36, bold. */
        readonly heading1: GrokTextStyle;
        /** Section heading, 24/30, bold. */
        readonly heading2: GrokTextStyle;
        /** Sub-section heading, 20/26, semibold. */
        readonly heading3: GrokTextStyle;
        /** Body, 16/24. */
        readonly body1: GrokTextStyle;
        /** Labels, notes, captions, table headers, 14/20. */
        readonly subtext: GrokTextStyle;
        /** Table cells, 15/22. */
        readonly table: GrokTextStyle;
        /** A headline figure, 24/30, medium. */
        readonly metric: GrokTextStyle;
        /** Data in charts, 13/18. */
        readonly body2: GrokTextStyle;
        /** Legends, ticks, meta, 12/16. */
        readonly label: GrokTextStyle;
        /** 11/16. */
        readonly caption: GrokTextStyle;
        /** Monospace 13/20. */
        readonly code: GrokTextStyle;
    };
    /** 400 / 500 / 600; the brand face's regular is 425 on a Mac, as in the chat around the page. */
    readonly weight: GrokWeightScale;
    /** Corner radii in px: 4 / 8 / 12 / 16, and `full` for a pill. */
    readonly radius: {
        readonly sm: 4;
        readonly md: 8;
        readonly lg: 12;
        readonly xl: 16;
        readonly full: 9999;
    };
    /**
     * The one step every kit control takes into its hover or pressed state:
     * `hover` is the duration, `easing` the curve. A custom visual that
     * reacts to the pointer uses the same two, so it moves with the kit's
     * blocks, and skips the transition when the viewer asks for reduced motion.
     */
    readonly motion: {
        readonly hover: string;
        readonly easing: string;
    };
    /**
     * Grok Bot brand colors for data marks (bars, lines, points, areas, slices,
     * swatches), for the viewer's polarity. Series `i` takes `categorical[i]`;
     * a single series is `categorical[0]` with its de-emphasized marks in
     * `singleSeriesRest`; comparisons and "Other" are `other`. Never color text
     * with these: labels, values, and ticks stay on `text`.
     */
    readonly dataviz: GrokDataViz;
    /**
     * Ink shades, darkest first: `text.primary`, `text.tertiary`, a fainter
     * tertiary, and the `fill.secondary` tint.
     *
     * @deprecated Color data marks from `dataviz` instead. Kept so existing
     * canvases still render; the built-in charts no longer use it.
     */
    readonly chart: readonly [string, string, string, string];
}
/**
 * Returns the Grok theme for the viewer's current light/dark mode. Call it in
 * each component that needs colors; prefer the built-in components first.
 * Under a `Page` with a `palette`, `dataviz.categorical` holds the page's
 * own series colors.
 *
 * @example
 * ```tsx
 * function Note() {
 *   const theme = useGrokTheme();
 *   return <div style={{ color: theme.text.secondary }}>Heads up</div>;
 * }
 * ```
 */
export declare function useGrokTheme(): GrokTheme;
