import { type LinkFocusModel, type LinkFocusOptions, type LinkFocusState } from '@pixerate/editor/tools'; export interface LinkFocusBinding { readonly model: LinkFocusModel; /** The model's state, reactive. */ readonly state: LinkFocusState; /** The focused key and its links, reactive, for a live region. */ readonly description: string; /** Spread on a mark's element (the key it focuses). */ mark(key: string): { onpointerenter: () => void; onfocus: () => void; 'data-link-focus': string; }; /** Spread on the picture's container: arrow keys, Home, End, Escape, and clearing on leave. */ readonly root: { onkeydown: (event: KeyboardEvent) => void; onpointerleave: () => void; onfocusout: (event: FocusEvent) => void; }; /** Opacity for the mark at `index`: 1 when lit, the model's `dim` otherwise. */ opacity(index: number): number; /** Stops following the model. */ destroy(): void; } /** * Focus across linked marks (#812) with Svelte 5 runes: follows a `createLinkFocus` model (pass * one, or the options to create it). Hovering or focusing a mark lights it and everything linked to * it; arrow keys walk the keys, Escape clears, and leaving the picture clears too. */ export declare function linkFocusOf(input: LinkFocusModel | LinkFocusOptions): LinkFocusBinding;