import type { gmail_v1 } from "googleapis"; import { type ParsedAttachment } from "./mime.js"; export interface SearchHit { readonly id: string; readonly thread_id: string; readonly from: string; readonly to: string; readonly subject: string; readonly date: string; readonly snippet: string; readonly label_ids: ReadonlyArray; readonly has_attachment: boolean; } export interface FullMessage { readonly id: string; readonly thread_id: string; readonly from: string; readonly to: string; readonly cc: string; readonly bcc: string; readonly subject: string; readonly date: string; readonly snippet: string; readonly body_text: string; readonly body_html: string; readonly label_ids: ReadonlyArray; readonly attachments: ReadonlyArray; } export interface ThreadResult { readonly id: string; readonly history_id: string; readonly messages: ReadonlyArray; } export interface LabelInfo { readonly id: string; readonly name: string; readonly type: "system" | "user"; } export declare function searchEmails(gmail: gmail_v1.Gmail, query: string, max?: number): Promise>; export declare function readEmail(gmail: gmail_v1.Gmail, id: string, format?: "full" | "raw"): Promise; export declare function getThread(gmail: gmail_v1.Gmail, id: string): Promise; export declare function listLabels(gmail: gmail_v1.Gmail): Promise>; //# sourceMappingURL=tools.d.ts.map