import type { Snippet } from 'svelte'; import { type GenerationPlan, type GenerationReference, type GenerationRequest, type ModelCapabilities, type PlanStrategy, type ReferenceRole } from '@pixerate/editor/generation'; interface Props { capabilities: ModelCapabilities; /** The request being edited (controlled). */ value: GenerationRequest; onchange: (next: GenerationRequest) => void; /** A plan computed elsewhere; otherwise one is computed with `strategy`. */ plan?: GenerationPlan; /** Strategy for the built-in plan (default `nearest`). */ strategy?: PlanStrategy; /** List plan adjustments and errors under the controls (default `true`). */ showAdjustments?: boolean; /** Shows an "Add" button per reference role; you pick the asset and call `onchange`. */ onaddreference?: (role: ReferenceRole) => void; /** Custom rendering of a reference chip (default: its id). */ reference?: Snippet<[GenerationReference]>; class?: string; } declare const GenerationSettings: import("svelte").Component; type GenerationSettings = ReturnType; export default GenerationSettings;