import { AbstractDownloader } from './AbstractDownloader.ts';
export declare class ScarfDownloader extends AbstractDownloader {
    #private;
    minimalWidth: number;
    width: number;
    height: number;
    fileType: '.jpg' | '.png' | '.svg' | '.webp';
    fileName: string;
    staticSvg: SVGElement;
    constructor(fileName: string, fileType: string, width: number, el: HTMLElement);
    download(): Promise<void>;
    buildContent(): Promise<string>;
    /**
     * Returns the id of the chartwrap element.
     *
     * This is needed for correct styling of the svg,
     * because colors are applied to rect elements which are children of the given id.
     *
     * Example: #id-of-chartwrap rect { fill: red; }
     *
     * @param el Whole scarf plot element
     * @returns id of the chartwrap element
     */
    private getSvgId;
}
