import type { Annotation, Unsubscribe } from '../core/types.js'; import type { AnnotationProvider, AuthAware, AuthContext } from '../data/contracts.js'; /** In-memory annotation store for tests and demos; `others()` plays a second user making changes. */ export declare class MemoryAnnotationStore implements AnnotationProvider, AuthAware { private readonly items; private readonly listeners; readonly saved: Annotation[]; auth: AuthContext | null; failNextSave: Error | null; constructor(initial?: Annotation[]); setAuth(auth: AuthContext | null): void; list(): Promise; save(a: Annotation): Promise; remove(id: string): Promise; subscribe(onChange: (c: { upserted?: Annotation[]; removed?: string[]; }) => void): Unsubscribe; /** Another user's change arriving through the stream. */ others(change: { upserted?: Annotation[]; removed?: string[]; }): void; }