import { Annotation, Annotator, AnnotatorState, Store } from '@annotorious/core'; type Subscriber = (annotation: T[]) => void; export interface SvelteStore extends Store { subscribe(onChange: Subscriber): void; } export interface SvelteAnnotatorState extends AnnotatorState { store: SvelteStore; } export interface SvelteAnnotator extends Annotator { state: SvelteAnnotatorState; } /** * A simple wrapper around the event-based store implementation * that adds a Svelte shim, for use with the reactive '$' notation. * Other frameworks might not actually need this. But it's pretty * convenient for everyone using Svelte, as well as for the * basic (Svelte-based) Annotorious standard implementation. */ export declare const toSvelteStore: (store: Store) => SvelteStore; export {};