import { type ColorPreference, type Mode, type Theme } from '../theme/index.js'; export interface ThemeEditorProps { /** The theme being edited, as a host stores it. */ value: Theme; onChange: (theme: Theme) => void; /** Which mode's colors the controls edit. Leave it out to let the editor keep its own. */ mode?: Mode | undefined; onModeChange?: ((mode: Mode) => void) | undefined; /** The person's light, dark or system choice; the Appearance control shows when this and its handler are given. */ preference?: ColorPreference | undefined; onPreferenceChange?: ((preference: ColorPreference) => void) | undefined; /** What Reset returns to; the default theme when left out. */ defaultValue?: Theme | undefined; /** False drops the preview beside the controls, for a host that applies the theme app-wide as it changes (`useApplyTheme`). */ preview?: boolean | undefined; className?: string | undefined; } /** * Edits a theme: a background, an accent and a contrast for light and for * dark, an optional sidebar of its own and a code style. Everything else is * generated, so any choice reads. It previews the result beside the controls, * copies the theme as JSON, imports one pasted back, and resets. */ export declare function ThemeEditor({ value, onChange, mode, onModeChange, preference, onPreferenceChange, defaultValue, preview, className, }: ThemeEditorProps): import("react").JSX.Element; /** The theme on a small page: a sidebar, a panel of text, a control, statuses and code. */ export declare function ThemePreview({ theme, mode }: { theme: Theme; mode: Mode; }): import("react").JSX.Element;