import type { gmail_v1 } from "googleapis"; export interface ParsedAttachment { readonly filename: string; readonly mime_type: string; readonly size: number; readonly attachment_id: string; } export interface ParsedHeaders { readonly from: string; readonly to: string; readonly cc: string; readonly bcc: string; readonly subject: string; readonly date: string; readonly message_id: string; readonly reply_to: string; } export declare function decodeBase64Url(data: string): string; export declare function extractHeaders(payload: gmail_v1.Schema$MessagePart | undefined): ParsedHeaders; export interface ExtractedBody { readonly text: string; readonly html: string; readonly attachments: ReadonlyArray; } export declare function extractBody(payload: gmail_v1.Schema$MessagePart | undefined): ExtractedBody; //# sourceMappingURL=mime.d.ts.map