import type Resource from '../resources/resource'; import type MapPreviewer from './map'; import ImagePreviewer from './image'; export type AnyPreviewer = MapPreviewer | ImagePreviewer; /** * Every preview a single resource offers. A list, because one resource can be worth showing more * than one way: a georeferenced scan is both an image to page through and a map to overlay, and * each of those is its own tab. */ export declare function previewersFor(resource: Resource): Promise; /** * Every preview a list of resources offers, in the order they were given - which is the tab order. * Never rejects: this is awaited before the tabs are rendered, where a rejection would leave the * whole record without a preview rather than the one reference that failed. * * A location is the exception to that order, and goes last. It says where the record is, which is * worth a tab only when nothing else drew a map - a scan with no georeferencing to place it, or a * record with nothing previewable at all. Settled here rather than where the resources were built, * because a manifest is a map only if it turns out to be georeferenced and finding that out means * fetching it. */ export declare function previewersForResources(resources: Resource[]): Promise;