/** * Client for the public content-delivery API (api-key gated). * * The player fetches a content item's config + authored overlays by content-id * (reusing the same api-key path analytics uses) so an embed that only carries * `content-id` + `api-key` can render authored annotations/captions without any * DOM children. All fetchers are non-throwing: a failure returns null so the * player degrades gracefully to whatever DOM the embed provided. */ import type { DeliveryContentConfig, DeliveryTourConfig, DeliveryAnnotation, AnnotationData } from '@vizor-vr/shared'; export interface ContentFetchOptions { apiEndpoint: string; contentId: string; apiKey?: string; } export interface TourFetchOptions { apiEndpoint: string; tourId: string; apiKey?: string; } /** Fetch a content item's delivery config (player config + annotations + captions). */ export declare function fetchDeliveryContent(opts: ContentFetchOptions, fetchImpl?: typeof fetch): Promise; /** Fetch a tour's delivery graph (probes + portals). */ export declare function fetchDeliveryTour(opts: TourFetchOptions, fetchImpl?: typeof fetch): Promise; /** Map the delivery wire shape to the player's AnnotationData (null → undefined). */ export declare function deliveryAnnotationsToData(annotations: DeliveryAnnotation[]): AnnotationData[]; //# sourceMappingURL=delivery-client.d.ts.map