import type { InternalResourceRouter } from "./resource-selectors.ts";
export declare function registerArtifactDir(dir: string): void;
export declare function unregisterArtifactDir(dir: string): void;
export declare function artifactIdFromUrl(url: string): string | undefined;
/** Resolve an artifact:// url to a backing file path across known dirs. */
export declare function resolveArtifactUrl(url: string, pinnedDirs?: readonly string[]): string | undefined;
/** Build an InternalResourceRouter that resolves/reads artifact:// urls. */
export declare function createArtifactRouter(getPinnedDirs: () => readonly string[]): InternalResourceRouter;
/** Resolve and read an artifact directly from a context's artifact dirs. */
export declare function readArtifactUrl(url: string, dirs?: readonly string[]): string;
//# sourceMappingURL=artifact-protocol.d.ts.map