export declare const PATH_ILLUSTRATIONS = "https://cdn.riverty.design/illustrations/"; export declare const DEFAULT_KIT_NAME = "UI"; export declare const parseElementFromSvgContent: (content: string) => SVGSVGElement; export declare const getSvgContentByName: (name: string) => any; /** * Returns the current in-memory cache object containing all loaded illustrations. * Cache is stored as { [illustrationName]: svgContent } */ export declare const getIllustrationsData: () => { "app-update-refresh": string; "empty-state-404": string; "error-phone-01": string; "error-phone-02": string; "error-scan": string; "identity-verification-scan-01": string; "identity-verification-scan-02": string; "identity-verification-scan-03": string; "identity-verification-scan-04-1": string; "identity-verification-scan-04": string; "payment-complete": string; "payment-failed": string; "payment-start": string; "returns-complete": string; "returns-start": string; "rewards-gift": string; "success-hands": string; "success-phone": string; }; /** * Adds a newly fetched illustration to the in-memory cache. * Stores the SVG content by illustration name to prevent redundant CDN fetches. * @param name - The illustration name/identifier * @param content - The SVG content as string */ export declare const addToIllustrationsData: (name: any, content: any) => void; /** * Removes a dynamically-fetched illustration from the in-memory cache. * Intended for use in tests to ensure a clean cache state between test runs. * @param name - The illustration name to evict from cache */ export declare const removeCachedIllustration: (name: string) => void; /** * Retrieves a cached SVG illustration from memory by name. * Returns null if not found in cache. * Used to avoid re-fetching already loaded illustrations. * @param name - The illustration name to retrieve from cache * @returns SVG DOM element if found, null otherwise */ export declare const getSvgElementByName: (name: string) => SVGSVGElement; /** * Fetches an SVG illustration from the CDN using the illustration name. * Constructs URL as https://cdn.riverty.design/illustrations/{name}.svg * Throws error if fetch fails or response is not OK. * @param name - The illustration name to fetch from CDN * @returns Promise resolving to SVG DOM element * @throws Error if fetch fails or response status is not OK */ export declare const getSvgElementByNameFromCdn: (name: string) => Promise;