import { type EffectProvider } from '@pixerate/editor/effects'; interface Props { /** The effects provider; nothing shows unless it has templates. */ provider: EffectProvider | null | undefined; /** Fills the chosen template (the editor's `fillTemplate`). Resolves `{ ok: false, error }` to show the refusal; on success the form closes. */ onfill: (template: string, values: Record) => Promise<{ ok: true; } | { ok: false; error: string; }>; /** The button that fills (default "Use template"). */ fillLabel?: string; disabled?: boolean; class?: string; } declare const EffectTemplates: import("svelte").Component; type EffectTemplates = ReturnType; export default EffectTemplates;