/** * detectZarrStore * * Framework-agnostic probe that checks whether a URL already points at a Zarr * store. When it does, a host can skip the server-side conversion step and * stream/render the store directly. */ /** Result of probing a URL for a Zarr store. */ export interface ZarrStoreInfo { /** Whether the URL points at a readable Zarr store. */ isZarr: boolean; /** Detected Zarr format version, or `null` when it is not a Zarr store. */ version: 2 | 3 | null; /** * Whether consolidated metadata is available - i.e. the store can be * rendered client-side. v2 `.zmetadata` is consolidated by definition; * v3 requires a `consolidated_metadata` key in `zarr.json`. * * Non-consolidated stores are still Zarr and can skip conversion, but have * no client-side metadata view until server-side rendering is available. */ consolidated: boolean; } /** Options for {@link detectZarrStore}. */ export interface DetectZarrStoreOptions { /** * Override auth header injection. * Default: reads a Bearer token from the `freva_auth_token` cookie. */ getAuthHeaders?: () => Record; /** Abort each probe request after this many ms. Default: 5000. */ timeoutMs?: number; } /** * Checks whether a URL already points to a Zarr store by probing * `.zmetadata` (v2 consolidated) and then `zarr.json` (v2/v3). * * Consolidated metadata is tried first (the browser equivalent of * `zarr.open_consolidated`), then bare group detection (`zarr.open_group`). */ export declare function detectZarrStore(url: string, options?: DetectZarrStoreOptions): Promise; //# sourceMappingURL=detectZarrStore.d.ts.map