import { StateCreator } from 'zustand'; import { Annotation, AnnotationTool, AnnotationChangeListener } from '../types.js'; export interface AnnotationSlice { annotations: Annotation[]; activeAnnotationTool: AnnotationTool | null; selectedAnnotationId: string | null; addAnnotation: (annotation: Annotation) => void; updateAnnotation: (id: string, patch: Partial>) => void; deleteAnnotation: (id: string) => void; setAnnotations: (annotations: Annotation[]) => void; clearAnnotations: () => void; selectAnnotation: (id: string | null) => void; setActiveTool: (tool: AnnotationTool | null) => void; onAnnotationChange: (cb: AnnotationChangeListener) => () => void; _resetAnnotations: () => void; } export declare const createAnnotationSlice: StateCreator;