export declare function renderSVG(svg: SVGElement, type: 'image/jpeg' | 'image/png' | 'image/webp' | 'image/jpge', resultType: 'arrayBuffer', svgLoadWaitDelay?: number): Promise<ArrayBuffer>;
export declare function renderSVG(svg: SVGElement, type: 'image/jpeg' | 'image/png' | 'image/webp' | 'image/jpge', resultType: 'blob', svgLoadWaitDelay?: number): Promise<Blob>;
type ColorMatrix = number[];
export declare function applyColorMatrixToColor({ r, g, b, a }: {
    r: number;
    g: number;
    b: number;
    a: number;
}, matrix: ColorMatrix): {
    r: number;
    g: number;
    b: number;
    a: number;
};
export declare function applyColorMatricesToImage(imageData: ArrayBuffer, matrices: ColorMatrix[]): Promise<ArrayBuffer>;
export declare function getVisibleBBox(arrayBuffer: ArrayBuffer): Promise<{
    left: number;
    top: number;
    width: number;
    height: number;
} | undefined>;
export declare function cropToVisibleBBox(arrayBuffer: ArrayBuffer, bbox: {
    left: number;
    top: number;
    width: number;
    height: number;
}): Promise<ArrayBuffer>;
export declare function rasterize(svg: SVGSVGElement): Promise<{
    left: number;
    top: number;
    width: number;
    height: number;
    buffer: ArrayBuffer;
} | undefined>;
export declare function applyColorMatrix(data: ArrayBuffer, matrices: ColorMatrix[]): Promise<ArrayBuffer>;
export {};
