import type { Annotation, AnnotationStore, CreateAnnotationInput } from '../types.js'; export interface FetchStoreOptions { endpoint: string; headers?: Record; /** Abort a request that has not completed in this many milliseconds. */ timeoutMs?: number; } /** * Thrown when the backend rejects a request with 401. The * component recognizes this error (by name) and shows its unlock UI. */ export declare class PatchMarkAuthError extends Error { constructor(message: string); } export declare function createFetchStore(options: FetchStoreOptions): AnnotationStore; export declare function createLocalAnnotation(input: CreateAnnotationInput): Annotation;