import type { ResolvedAnnotation } from "../../iiif/annotationResolver"; type ExternalAnnotationLoader = { load: (canvasJson: unknown, canvasKey: string, canvasId?: string) => Promise; getForKey: (canvasKey: string) => ResolvedAnnotation[] | undefined; clear: () => void; }; /** * Collect external annotation page URLs from a canvas * These are URLs that need to be fetched to get the annotation content * * @param canvas - Either a manifesto canvas object or raw JSON * @returns Array of annotation page URLs that need to be fetched */ export declare const collectAnnotationPageRefs: (canvas: unknown) => string[]; export declare const createExternalAnnotationLoader: (fetcher?: typeof fetch) => ExternalAnnotationLoader; export {};