export type ImageEntry = { hash: number[]; bytes: Uint8Array; }; export declare function collectImageUrls(root: Element): string[]; export declare function preloadImages(urls: string[]): Promise; export declare function getImageSync(url: string): ImageEntry | null; export declare function extractBackgroundUrl(bg: string | undefined): string | null;