import { type BlobMeta, type BlobStore } from "../types.js"; /** The part of a Worker `Fetcher` binding (e.g. `ASSETS`) this store uses. */ export interface BlobFetcher { fetch(input: string): Promise; } export interface FetcherBlobStoreOptions { /** * The keys this store holds. With it, `get`, `head` and `list` know only these keys and never * fetch another: a static-assets binding with SPA fallback answers 200 with `index.html` for any * missing file, which would otherwise read as a blob. Without it, every key is fetched and * `list` reports none (static assets cannot be listed). */ readonly keys?: readonly string[]; } /** * A read-only `BlobStore` over static files (RFC-0036 ยง2): `key` is fetched as * `/` from the Worker's `ASSETS` binding. Writes throw `StorageError`. Used as the * base layer of a `LayeredBlobStore` for demo media. */ export declare class FetcherBlobStore implements BlobStore { #private; readonly name = "fetcher"; constructor(fetcher: BlobFetcher, prefix: string, options?: FetcherBlobStoreOptions); get(key: string): Promise; head(key: string): Promise; put(key: string): Promise; delete(key: string): Promise; list(prefix?: string): Promise; }