import { IntegrationAccessor } from '@membranehq/sdk'; export declare function useIntegration(idOrKey: string | undefined): { accessor: IntegrationAccessor | undefined; loading: boolean; saving: boolean; error: any; refresh: () => Promise<{ id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; spec?: any; authOptions?: { key: string; type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; title?: string | undefined; description?: string | undefined; inputSchema?: import("@membranehq/sdk").DataSchema | undefined; ui?: { schema?: any; helpUri?: string | undefined; } | undefined; }[] | undefined; }>; refreshing: boolean; create: (data: { uuid?: string | undefined; key?: string | undefined; name?: string | undefined; description?: string | undefined; meta?: Record | undefined; logoUri?: string | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; appUuid?: string | undefined; oAuthCallbackUri?: string | undefined; logoBase64?: string | undefined; connectorVersion?: string | undefined; connectorId?: string | undefined; connectorUuid?: string | undefined; connectorKey?: string | undefined; parameters?: Record | undefined; optionsConfig?: Record | undefined; }> | undefined; }) => Promise<{ id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; spec?: any; authOptions?: { key: string; type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; title?: string | undefined; description?: string | undefined; inputSchema?: import("@membranehq/sdk").DataSchema | undefined; ui?: { schema?: any; helpUri?: string | undefined; } | undefined; }[] | undefined; } | undefined>; patch: (data: Partial<{ uuid?: string | undefined; key?: string | undefined; name?: string | undefined; description?: string | undefined; meta?: Record | undefined; logoUri?: string | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; appUuid?: string | undefined; oAuthCallbackUri?: string | undefined; logoBase64?: string | undefined; connectorVersion?: string | undefined; connectorId?: string | undefined; connectorUuid?: string | undefined; connectorKey?: string | undefined; parameters?: Record | undefined; optionsConfig?: Record | undefined; }> | undefined; }>, options?: (Omit | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; spec?: any; authOptions?: { key: string; type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; title?: string | undefined; description?: string | undefined; inputSchema?: import("@membranehq/sdk").DataSchema | undefined; ui?: { schema?: any; helpUri?: string | undefined; } | undefined; }[] | undefined; } | undefined, { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; spec?: any; authOptions?: { key: string; type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; title?: string | undefined; description?: string | undefined; inputSchema?: import("@membranehq/sdk").DataSchema | undefined; ui?: { schema?: any; helpUri?: string | undefined; } | undefined; }[] | undefined; }>, "optimisticData"> & { optimisticData?: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; spec?: any; authOptions?: { key: string; type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; title?: string | undefined; description?: string | undefined; inputSchema?: import("@membranehq/sdk").DataSchema | undefined; ui?: { schema?: any; helpUri?: string | undefined; } | undefined; }[] | undefined; } | undefined; }) | undefined) => Promise; put: (data: { uuid?: string | undefined; key?: string | undefined; name?: string | undefined; description?: string | undefined; meta?: Record | undefined; logoUri?: string | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; appUuid?: string | undefined; oAuthCallbackUri?: string | undefined; logoBase64?: string | undefined; connectorVersion?: string | undefined; connectorId?: string | undefined; connectorUuid?: string | undefined; connectorKey?: string | undefined; parameters?: Record | undefined; optionsConfig?: Record | undefined; }> | undefined; }, options?: Omit | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; spec?: any; authOptions?: { key: string; type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; title?: string | undefined; description?: string | undefined; inputSchema?: import("@membranehq/sdk").DataSchema | undefined; ui?: { schema?: any; helpUri?: string | undefined; } | undefined; }[] | undefined; } | undefined, { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; spec?: any; authOptions?: { key: string; type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; title?: string | undefined; description?: string | undefined; inputSchema?: import("@membranehq/sdk").DataSchema | undefined; ui?: { schema?: any; helpUri?: string | undefined; } | undefined; }[] | undefined; }>, "optimisticData"> & { optimisticData?: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; spec?: any; authOptions?: { key: string; type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; title?: string | undefined; description?: string | undefined; inputSchema?: import("@membranehq/sdk").DataSchema | undefined; ui?: { schema?: any; helpUri?: string | undefined; } | undefined; }[] | undefined; } | undefined; }) => Promise; archive: () => Promise; integration: { id: string; name: string; logoUri: string; uuid?: string | undefined; key?: string | undefined; description?: string | undefined; meta?: Record | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; isReadOnly?: boolean | undefined; connectorId?: string | undefined; connectorVersion?: string | undefined; oAuthCallbackUri?: string | undefined; parameters?: any; archivedAt?: string | undefined; hasMissingParameters?: boolean | undefined; hasDocumentation?: boolean | undefined; hasOperations?: boolean | undefined; operationsCount?: number | undefined; hasData?: boolean | undefined; dataCollectionsCount?: number | undefined; hasEvents?: boolean | undefined; eventsCount?: number | undefined; hasGlobalWebhooks?: boolean | undefined; hasUdm?: boolean | undefined; isTest?: boolean | undefined; externalAppId?: string | undefined; appUuid?: string | undefined; isDeactivated?: boolean | undefined; authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined; optionsConfig?: Record | undefined; }> | undefined; connection?: { id: string; name: string; createdAt: string; updatedAt: string; userId: string; key?: string | undefined; isTest?: boolean | undefined; connected?: boolean | undefined; disconnected?: boolean | undefined; isDefunct?: boolean | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; requestError?: import("@membranehq/sdk").ErrorDataSchema | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; integrationId?: string | undefined; connectorId?: string | undefined; externalAppId?: string | undefined; connectorVersion?: string | undefined; authOptionKey?: string | undefined; lastActiveAt?: string | undefined; nextCredentialsRefreshAt?: string | undefined; nextRetryTimestamp?: string | undefined; retryAttempts?: number | undefined; canTest?: boolean | undefined; canRefreshCredentials?: boolean | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; meta?: Record | undefined; buildingAgentSessionId?: string | undefined; clientAction?: { type: "connect" | "provide-input"; description: string; uiUrl?: string | undefined; agentInstructions?: string | undefined; } | undefined; tenantId?: string | undefined; } | undefined; spec?: any; authOptions?: { key: string; type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials"; title?: string | undefined; description?: string | undefined; inputSchema?: import("@membranehq/sdk").DataSchema | undefined; ui?: { schema?: any; helpUri?: string | undefined; } | undefined; }[] | undefined; } | undefined; };