histoire
Version:
A fast story book powered by Vite
21 lines • 898 B
TypeScript
/** Registry logos are small monochrome SVGs; anything larger is refused. */
export declare const AGENT_ICON_BYTES: number;
/**
* Fetches and caches registry agent logos on the server so the browser only loads
* same-origin SVGs (rendered as CSS masks) and never contacts the registry CDN.
*/
export declare function createAgentRegistryIcons(options: {
/** User cache directory shared with the registry. */
cacheDir: string;
/** Remote boundary, injectable for tests. */
fetch?: typeof fetch;
/** Resolves a validated registry entry's HTTPS logo URL. */
iconUrl: (id: string) => Promise<string | undefined>;
}): {
/**
* SVG body for a registry agent, or `undefined` when it has no usable logo.
* Failures are not memoized so a later request can retry.
*/
get(id: string): Promise<string | undefined>;
};
//# sourceMappingURL=registry-icons.d.ts.map