import type { SuperagentAgent, SuperagentAutomation, SuperagentAutomationCreditsSummary, SuperagentChannelStatus, SuperagentCollaborator, SuperagentConnector, SuperagentConnectorActionInput, SuperagentIMessageActivation, SuperagentIMessageChannelStatus, SuperagentInviteCollaboratorsResult, SuperagentLineActivation, SuperagentModelChoice, SuperagentSandboxFileContent, SuperagentSecret, SuperagentSlackChannelStatus, SuperagentSlackConnectResult, SuperagentTelegramChannelStatus, SuperagentToolPermissionConfig, SuperagentWhatsAppChannelStatus, SuperagentWorkflow } from '../types'; export type SuperagentApiClientConfig = { baseUrl: string; currentUserId?: string | null; getAccessToken: () => Promise | string | null | undefined; getHeaders?: () => Promise | undefined> | Record | undefined; }; export type SuperagentVoiceLiveSession = { sessionId: string; streamToken: string; websocketUrl: string; }; type TelegramManagedBotStatusResponse = { bot_link?: string | null; bot_name?: string | null; bot_username?: string | null; status?: string; }; export type SuperagentConnectorsResult = { availableConnectors: SuperagentConnector[]; connectedConnectors: SuperagentConnector[]; }; export type InitiateConnectorConnectionResult = { already_authorized?: boolean; connection_id?: string | null; error?: string | null; error_message?: string | null; other_user_email?: string | null; redirect_url?: string | null; }; export type ConnectorConnectionStatus = 'ACTIVE' | 'FAILED' | 'PENDING'; export declare function createSuperagentApiClient(config: SuperagentApiClientConfig): { listAgents(): Promise; createAgent(): Promise; renameAgent(agentId: string, name: string): Promise; updateAgentModel(agentId: string, model: SuperagentModelChoice | string): Promise; updateAgentAutomationModel(agentId: string, model: SuperagentModelChoice | string): Promise; updateToolPermissions(agentId: string, config: SuperagentToolPermissionConfig): Promise; deleteAgent(agentId: string): Promise; listCollaborators(agentId: string): Promise; inviteCollaborators(agentId: string, emails: string[], addAsGuest?: boolean): Promise; listSecrets(agentId: string): Promise; saveSecret(agentId: string, name: string, value: string): Promise; deleteSecret(agentId: string, name: string): Promise; listConnectors(agentId: string): Promise; listAutomations(agentId: string): Promise; listAutomationCredits(agentId: string): Promise>; listSandboxFiles(agentId: string): Promise; readSandboxFile(agentId: string, path: string): Promise; writeSandboxFile(agentId: string, path: string, content: string): Promise; initiateConnectorConnection(agentId: string, connectorId: string, options?: Pick): Promise; getConnectorConnectionStatus(agentId: string, connectorId: string, connectionId: string): Promise; getRuntimeAuthToken(agentId: string): Promise; getWhatsAppConnectUrl(agentId: string, runtimeAuthToken: string): string; getChannelStatus(agentId: string, runtimeAuthToken: string): Promise; getTelegramStatus(agentId: string, runtimeAuthToken: string): Promise; getIMessageStatus(agentId: string, runtimeAuthToken: string): Promise; getWhatsAppStatus(agentId: string, runtimeAuthToken: string): Promise; disconnectWhatsApp(agentId: string): Promise; generateIMessageCode(agentId: string, runtimeAuthToken: string): Promise; disconnectIMessage(agentId: string, runtimeAuthToken: string): Promise; setupTelegram(agentId: string, runtimeAuthToken: string, token: string): Promise; createManagedTelegramBot(agentId: string, runtimeAuthToken: string, input: { agentDisplayName?: string; agentProfilePhotoUrl?: string | null; }): Promise<{ link: string; nonce: string; }>; getManagedTelegramBotStatus(agentId: string, runtimeAuthToken: string, nonce: string): Promise; disconnectTelegram(agentId: string, runtimeAuthToken: string): Promise; generateLineCode(agentId: string, runtimeAuthToken: string): Promise; getSlackStatus(agentId: string, runtimeAuthToken: string): Promise; connectSlack(agentId: string, runtimeAuthToken: string): Promise; disconnectSlack(agentId: string, runtimeAuthToken: string): Promise; disconnectConnector(agentId: string, connectorId: string): Promise; removeConnector(agentId: string, connectorId: string): Promise; toggleAutomation(agentId: string, automation: SuperagentAutomation): Promise; archiveAutomation(agentId: string, automation: SuperagentAutomation): Promise; restoreAutomation(agentId: string, automation: SuperagentAutomation): Promise; deleteAutomation(agentId: string, automation: SuperagentAutomation): Promise; runAutomationNow(agentId: string, automation: SuperagentAutomation): Promise; listWorkflows(agentId: string): Promise; toggleWorkflow(agentId: string, workflow: SuperagentWorkflow): Promise<{ status?: string; }>; archiveWorkflow(agentId: string, workflow: SuperagentWorkflow): Promise; restoreWorkflow(agentId: string, workflow: SuperagentWorkflow): Promise<{ status?: string; }>; runWorkflowNow(agentId: string, workflow: SuperagentWorkflow): Promise; createVoiceLiveSession(agentId: string, conversationId: string | null): Promise; deleteVoiceLiveSession(agentId: string, sessionId: string): Promise; }; export declare function isPaymentIntegration(integrationType: string): integrationType is "stripe" | "stripe_payment" | "wix_payments"; export {}; //# sourceMappingURL=superagentApiClient.d.ts.map