import type { ExportOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks, ImageEditorFit } from '@pixerate/editor/image-editor'; import type { AgentPlayback } from '@pixerate/editor/tools'; import { type ReactiveImageEditor } from './imageEditorState.svelte.js'; import type { EffectProvider } from '@pixerate/editor/effects'; interface Props { editor?: ReactiveImageEditor; src?: string; class?: string; style?: string; onSave?: (dataUrl: string) => void; exportOptions?: ExportOptions; onInpaint?: InpaintHook; onRemoveBackground?: RemoveBackgroundHook; aiHooks?: ImageEditorAIHooks; fit?: ImageEditorFit; /** * An effects provider (see `@pixerate/editor/effects`), registered with the controller while * mounted: filter effects as smart filters and generator or overlay effects as effect layers, * with an Effects section in the Layers tab. Optional: without one the editor is as before. */ effects?: EffectProvider | null; /** * Agent playback: act out the image tools' calls here with the agent's cursor, opening the * panel each tool belongs to (default: `setAgentPlayback` above; `null` turns it off). */ playback?: AgentPlayback | null; /** The playback surface id (default `image`, where the image tool providers play). */ playbackId?: string; /** Bring the editor on screen (switch to its tab) before the agent acts. */ onplaybackreveal?: () => void | Promise; } declare const ImageEditor: import("svelte").Component; type ImageEditor = ReturnType; export default ImageEditor;