export type ThemedSvgRuntimeErrorCode = 'invalid-url' | 'untrusted-origin' | 'http-error' | 'invalid-content-type' | 'too-large' | 'invalid-svg' | 'unsafe-svg' | 'inaccessible-svg' | 'aborted'; export declare class ThemedSvgRuntimeError extends Error { readonly code: ThemedSvgRuntimeErrorCode; readonly url?: string | undefined; constructor(code: ThemedSvgRuntimeErrorCode, message: string, url?: string | undefined, options?: ErrorOptions); } export interface ThemedSvgAccessibility { alt?: string; description?: string; } export interface MountThemedSvgOptions extends ThemedSvgAccessibility { trustedOrigins?: readonly string[]; maxBytes?: number; signal?: AbortSignal; fetch?: typeof fetch; onLoad?: (svg: SVGSVGElement) => void; onError?: (error: ThemedSvgRuntimeError) => void; onAbort?: (error: ThemedSvgRuntimeError) => void; onLoading?: () => void; } export interface ThemedSvgMount { readonly host: HTMLElement; readonly loaded: Promise; reload(src?: string | URL): Promise; abort(reason?: unknown): void; dispose(): void; setAccessibility(accessibility: ThemedSvgAccessibility): void; } export interface DefineThemedSvgElementOptions { trustedOrigins?: readonly string[]; maxBytes?: number; } export interface UpgradeThemedSvgImageOptions { hostSrc?: string | URL; description?: string; } export interface UpgradeThemedSvgImagesOptions { selector?: string; sourceAttribute?: string; descriptionAttribute?: string; } export declare function mountThemedSvg(target: Element, src: string | URL, options?: MountThemedSvgOptions): ThemedSvgMount; export declare function hostSvgSource(source: string): string; export declare function upgradeThemedSvgImage(image: HTMLImageElement, options?: UpgradeThemedSvgImageOptions): HTMLElement; export declare function upgradeThemedSvgImages(root?: ParentNode, options?: UpgradeThemedSvgImagesOptions): HTMLElement[]; export declare function defineThemedSvgElement(options?: DefineThemedSvgElementOptions): CustomElementConstructor | undefined; //# sourceMappingURL=runtime.d.ts.map