import { SvelteComponentTyped } from "svelte"; export declare const themes: Record; export type CarbonTheme = "white" | "g10" | "g80" | "g90" | "g100"; export type CarbonToken = import("./carbon-tokens").CarbonToken; export type ThemeProps = { /** * Set the current Carbon theme. * @default "white" */ theme?: CarbonTheme; /** * Customize a theme with your own tokens. Keys are Carbon v11 token names * (`"button-primary"`, `"layer-01"`), set as `--cds-{token}`. * @see https://carbondesignsystem.com/elements/themes/overview/#customizing-a-theme * @default {} */ tokens?: Partial>; /** * Set to `true` to persist the theme using window.localStorage * @default false */ persist?: boolean; /** * Specify the local storage key * @default "theme" */ persistKey?: string; /** * Set to `true` to follow the operating system color scheme. * `theme` is set from `systemThemes` on mount and on every change; * set `theme` yourself to override until the next system change. * @default false */ system?: boolean; /** * Specify the themes to apply for the light and dark system color schemes. * @default ["white", "g100"] */ systemThemes?: [light: CarbonTheme, dark: CarbonTheme]; /** * Render a toggle, select, or dropdown to control the theme. */ render?: "toggle" | "select" | "dropdown" | undefined; /** * Override the default toggle props. * @default { themes: ["white", "g100"], labelA: "", labelB: "", labelText: "Dark mode", hideLabel: false, } */ toggle?: import("../Toggle/Toggle.svelte").ToggleProps & { themes?: [labelA: CarbonTheme, labelB: CarbonTheme] }; /** * Override the default select props. * @default { themes: themeKeys, labelText: "Themes", hideLabel: false, } */ select?: import("../Select/Select.svelte").SelectProps & { themes?: CarbonTheme[] }; /** * Override the default dropdown props. * @default { themes: themeKeys, labelText: "Themes", hideLabel: false, } */ dropdown?: Omit & { themes?: CarbonTheme[] }; children?: (this: void, ...args: [{ theme: CarbonTheme }]) => void; }; export default class Theme extends SvelteComponentTyped< ThemeProps, { update: CustomEvent<{ theme: CarbonTheme; }>; }, { default: { theme: CarbonTheme } } > {}