import { type Snippet } from 'svelte'; import type { AgentPlayback } from '@pixerate/editor/tools'; import { type ParametersController } from '@pixerate/editor/parameters'; import { type ParameterComponents } from './controls.js'; interface Props { controller: ParametersController; /** Heading (default: the schema's title). Pass `null` for none. */ title?: string | null; /** Undo, redo, reset and randomize buttons (default `true`). */ showToolbar?: boolean; /** The preset picker with save and delete (default `true`). */ showPresets?: boolean; /** Keyframe diamonds (default: when the controller has a keyframes adapter). */ showKeyframes?: boolean; /** Per-field reset buttons on changed values (default `true`). */ showFieldReset?: boolean; /** Turns a picked file into a URL for image fields. */ resolveFile?: (file: File) => string | Promise; /** Custom host components for inputs, sliders, and selects. */ components?: ParameterComponents; /** Shown when the schema has no fields. */ emptyMessage?: string; /** Prefix for the panel's element ids. */ idPrefix?: string; class?: string; /** Extra content after the fields. */ children?: Snippet; /** * Agent playback: act out `parameters.*` commands here with the agent's cursor (default: * `setAgentPlayback` above; `null` turns it off). */ playback?: AgentPlayback | null; /** The playback surface id (default `parameters`, where the parameter commands play). */ playbackId?: string; /** Bring the panel on screen (switch to its tab) before the agent acts. */ onplaybackreveal?: () => void | Promise; } declare const ParametersPanel: import("svelte").Component; type ParametersPanel = ReturnType; export default ParametersPanel;