import type { BotConfig } from "@hanzo/bot/plugin-sdk/googlechat"; import type { ResolvedGoogleChatAccount } from "./accounts.js"; import type { GoogleChatAudienceType } from "./auth.js"; import { getGoogleChatRuntime } from "./runtime.js"; export type GoogleChatRuntimeEnv = { log?: (message: string) => void; error?: (message: string) => void; }; export type GoogleChatMonitorOptions = { account: ResolvedGoogleChatAccount; config: BotConfig; runtime: GoogleChatRuntimeEnv; abortSignal: AbortSignal; webhookPath?: string; webhookUrl?: string; statusSink?: (patch: { lastInboundAt?: number; lastOutboundAt?: number }) => void; }; export type GoogleChatCoreRuntime = ReturnType; export type WebhookTarget = { account: ResolvedGoogleChatAccount; config: BotConfig; runtime: GoogleChatRuntimeEnv; core: GoogleChatCoreRuntime; path: string; audienceType?: GoogleChatAudienceType; audience?: string; statusSink?: (patch: { lastInboundAt?: number; lastOutboundAt?: number }) => void; mediaMaxMb: number; };