import { PresenceStore, type AgentPlayback, type PlaybackChromeOptions, type PlaybackSurface } from '@pixerate/editor/tools'; type MaybeGetter = T | (() => T); /** Makes `playback` the default for every editor surface in this component's subtree (call during init). */ export declare function setAgentPlayback(playback: AgentPlayback | null | undefined): void; /** The nearest `setAgentPlayback` playback, or `null` (call during init). */ export declare function getAgentPlayback(): AgentPlayback | null; /** A surface's behaviour; every function is read fresh on each call. */ export type PlaybackSurfaceOptions = Omit; /** * Attaches a playback surface under `id` (the tool provider's id, or its `playbackSurface`) for the * calling component's lifetime (call during init), and returns its cursors to draw with * ``. `playback` defaults to `getAgentPlayback()`; with none, nothing is attached and * calls run instantly. Parity with React's `usePlaybackSurface`. */ export declare function createPlaybackSurface(playback: MaybeGetter, id: MaybeGetter, options?: MaybeGetter, /** Use this presence store (e.g. a director's, so its cursor and playback's are one) instead of a new one. */ sharedPresence?: PresenceStore | null): PresenceStore; export interface ElementPlaybackSurfaceOptions extends PlaybackChromeOptions { /** The kind of a bare `id` / `ids` argument (e.g. `parameter`). */ defaultKind?: string; /** * A CSS selector for each ref kind the surface can find inside the element. Refs they miss go to * `locate`, then `locateElement` (which may return an element outside this one). */ selectors?: Record string>; /** Bring the element on screen (switch to its tab) before the agent acts. */ reveal?: () => void | Promise; } /** * A playback surface for a plain DOM component (call during init): coordinates are pixels of the * element's box, and refs are found by the CSS selectors given per kind. Draw the cursors with * `` inside the element. Parity with React's `useElementPlaybackSurface`. */ export declare function createElementPlaybackSurface(playback: MaybeGetter, id: MaybeGetter, element: () => HTMLElement | null | undefined, options: MaybeGetter): PresenceStore; export {};