import type sharp from 'sharp';
export declare class Base64Image {
    private buffer;
    static readonly strPrefix = "data:image/png;base64,";
    private _sharp?;
    private constructor();
    static fromPathOrString(pathOrStr: string): Promise<Base64Image>;
    static fromPath(filePath: string): Promise<Base64Image>;
    static fromString(str: string): Promise<Base64Image>;
    private static fromBuffer;
    private getSharp;
    getInfo(): Promise<sharp.OutputInfo>;
    resizeToFitInto(dimension: number): Promise<Base64Image>;
    resizeWithSameAspectRatio(width: number, height: number): Promise<Base64Image>;
    cropRegion(x: number, y: number, croppedWidth: number, croppedHeight: number): Promise<Base64Image>;
    toString(withPrefix?: boolean): string;
    toBuffer(): Buffer;
}
