export declare const PROVIDERS: readonly [{ readonly id: "gmail"; readonly name: "Gmail"; readonly hint: "Emails and threads"; }, { readonly id: "outlook"; readonly name: "Outlook"; readonly hint: "Emails and threads"; }, { readonly id: "slack"; readonly name: "Slack"; readonly hint: "Messages and channels"; }, { readonly id: "google_calendar"; readonly name: "Google Calendar"; readonly hint: "Schedules and events"; }, { readonly id: "google_meet"; readonly name: "Google Meet"; readonly hint: "Meeting notes and transcripts"; }, { readonly id: "teams"; readonly name: "Microsoft Teams"; readonly hint: "Chat, calendar, and meetings"; }]; interface Integration { readonly id: string; readonly provider: string; /** Maps from the API's `auth_status` response field. */ readonly status: string; readonly updatedAt: string; } /** True when the API treats an integration as connected — i.e. it has a working auth session. */ export declare function isIntegrationLiveStatus(status: string): boolean; export declare function fetchIntegrations(params: { apiOrigin: string; secretKey: string; userId: string; verbose?: boolean; }): Promise; /** Builds the dashboard OAuth URL, placing the pit_ token in the fragment so it is never sent to the server. */ export declare function buildConnectUrl(params: { dashboardOrigin: string; pitToken: string; userId: string; provider: string; cliCallback: { port: number; nonce: string; } | null; }): string; /** * Constructs the session-mode activation URL. CLI callback params (port, nonce) * are placed in the URL fragment so they are never sent to the server — same * privacy model as {@link buildConnectUrl}. */ export declare function buildSessionConnectUrl(params: { activationUrl: string; provider: string | null; cliCallback: { port: number; nonce: string; } | null; }): string; /** Connects a data source (Gmail, Slack, etc.) from the terminal via OAuth. */ export declare function runConnect(): Promise; export {}; //# sourceMappingURL=connect.d.ts.map