import { type ActionEntry } from "../agent/production-agent.js"; import { type GoogleDocsPushHeaders } from "./google-docs-webhook.js"; export interface GoogleDocsPollerOptions { intervalMs?: number; triggerKeyword?: string; systemPrompt: string; actions: Record; initialToolNames?: string[]; model: string; apiKey: string; ownerEmail: string; webhookUrl?: string; } export declare function registerWatch(webhookUrl: string, expectedChannelId?: string, expectedPollerGeneration?: number): Promise; export declare function verifyGoogleDocsPushNotification(headers: GoogleDocsPushHeaders): Promise; export declare function stopGoogleDocsWatchChannel(accessToken: string, channelId: unknown, resourceId: unknown): Promise; export declare function processChanges(options: GoogleDocsPollerOptions): Promise; export declare function handlePushNotification(): Promise; export declare function startGoogleDocsPoller(options: GoogleDocsPollerOptions): Promise; /** * Stops polling and watch renewal, then retires the shared Drive watch. * With `shuttingDown`, it instead waits for a poll in flight to finish and * leaves the watch registered for the servers still running, or the next * start, to renew or replace. */ export declare function stopGoogleDocsPoller(options?: { shuttingDown?: boolean; }): Promise;