import { type Snippet } from 'svelte'; import { FontPickerModel, type FontProvider, type FontSpec, type FontSummary } from '@pixerate/editor/typography'; interface Props { /** The selected font (controlled). */ value?: Partial; /** Called when the user (or an agent through the model's tools) picks a different font, weight or style. */ onchange?: (value: FontSpec) => void; onChange?: (value: FontSpec) => void; /** An existing model; when given, `provider`, `fonts` and `previewText` are ignored. */ model?: FontPickerModel; /** Where fonts come from (fetched on mount). */ provider?: FontProvider; /** A fixed list of fonts. */ fonts?: readonly FontSummary[]; /** Text for the live preview. */ previewText?: string; /** Show the live preview (default true). */ showPreview?: boolean; /** Show the category filter (default true). */ showCategories?: boolean; /** Show the weight and style selects (default true). */ showWeight?: boolean; /** Most options rendered at once (default 200); search to reach the rest. */ maxResults?: number; disabled?: boolean; class?: string; className?: string; id?: string; /** Accessible label for the group (default "Font picker"). */ 'aria-label'?: string; /** Extra controls rendered above the preview (used by `TypographyControl`). */ children?: Snippet; } declare const FontPicker: import("svelte").Component; type FontPicker = ReturnType; export default FontPicker;