import type { ArtifactDescriptor, AssetArtifactError } from '@forgeax/engine-types'; import { type Result } from '@forgeax/engine-types'; import { type PackageFetcher } from '../internal/package-read.js'; export interface ArtifactReadRequest { readonly packageUrl: string; readonly guid: string; readonly artifactKey: string; readonly descriptor: ArtifactDescriptor; } export type ArtifactFetcher = PackageFetcher; export declare function artifactUrl(packageUrl: string, path: string): string; export declare function readArtifact(request: ArtifactReadRequest, fetcher?: ArtifactFetcher): Promise>; export declare class ArtifactReadCache { private readonly cache; read(key: string, reader: () => Promise>): Promise>; clear(key?: string): void; clearPrefix(prefix: string): void; } //# sourceMappingURL=artifact-io.d.ts.map