import type { StockCatalog, StockItem } from "./types.ts"; export declare const digest: (bytes: Uint8Array) => string; export declare function readStockCatalog(path: string): StockCatalog; export declare function accepted(item: StockItem): boolean; /** Resolve local immutable cache first, then a provider URL pinned by its expected hash. */ export declare function stockBytes(item: StockItem, cacheRoot: string, thumb?: boolean, assetOrigin?: string | undefined): Promise; export declare function importStock(opts: { root: string; cacheRoot: string; item: StockItem; reason: string; placements: string[]; assetOrigin?: string; }): Promise;