import { type ConnectorAcquireBatch, type ConnectorAcquireRequest, type ConnectorAdapter } from './types.js'; export interface GmailMessage { readonly id: string; readonly date: string; readonly subject: string; readonly participants: readonly string[]; readonly body: string; } export interface GmailThread { readonly id: string; readonly matchedMessageIds: readonly string[]; readonly messages: readonly GmailMessage[]; } export interface GmailClient { searchThreads(request: { query: string; limit: number; cursor?: string; }): Promise; } export interface GmailOptions { readonly enabled: boolean; readonly domain: string; readonly contacts?: readonly string[]; readonly includeSpamTrash?: boolean; } export declare function buildGmailQuery(options: Pick): string; export declare class GmailAdapter implements ConnectorAdapter { #private; readonly client: GmailClient; readonly provider: "gmail"; constructor(client: GmailClient, options: GmailOptions); acquire(request: ConnectorAcquireRequest): Promise; }