/**
 * Parse `data:mime;base64,...` into buffer (aligned with Telegram `parseDataUrl`).
 */
export declare function parseDataUrl(dataUrl: string): {
    mimeType: string;
    buffer: Buffer;
} | null;
export declare function writeDataUrlBufferToTemp(params: {
    buffer: Buffer;
    mimeType: string;
    destDir: string;
}): Promise<string>;
