import { ExternalEventSubscriptionAccessor } from '@membranehq/sdk'; export declare function useExternalEventSubscription(id: string | undefined): { loading: boolean; saving: boolean; error: any; refreshing: boolean; create: (data: undefined) => Promise<{ userId: string; id: string; connectionId: string; integrationId: string; tenantId?: string | undefined; name?: string | undefined; config?: { type: import("@membranehq/sdk").ExternalEventSubscriptionType; dataSource?: { key?: any; collectionKey?: any; collectionParameters?: any; udm?: any; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; path?: any; defaultPath?: any; } | undefined; eventKey?: string | undefined; eventParameters?: any; } | undefined; status?: import("@membranehq/sdk").ExternalEventSubscriptionStatus | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; isRealTime?: boolean | undefined; requiresPull?: boolean | undefined; requiresFullSync?: boolean | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; stateData?: any; nextPullEventsTimestamp?: number | undefined; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; nextRefreshTimestamp?: number | undefined; globalWebhookKey?: string | undefined; globalWebhookEventSelector?: string | undefined; webhookUri?: string | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | 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; 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; } | undefined; } | undefined>; patch: (data: undefined, options?: (Omit | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | 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; 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; } | undefined; } | undefined, { userId: string; id: string; connectionId: string; integrationId: string; tenantId?: string | undefined; name?: string | undefined; config?: { type: import("@membranehq/sdk").ExternalEventSubscriptionType; dataSource?: { key?: any; collectionKey?: any; collectionParameters?: any; udm?: any; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; path?: any; defaultPath?: any; } | undefined; eventKey?: string | undefined; eventParameters?: any; } | undefined; status?: import("@membranehq/sdk").ExternalEventSubscriptionStatus | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; isRealTime?: boolean | undefined; requiresPull?: boolean | undefined; requiresFullSync?: boolean | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; stateData?: any; nextPullEventsTimestamp?: number | undefined; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; nextRefreshTimestamp?: number | undefined; globalWebhookKey?: string | undefined; globalWebhookEventSelector?: string | undefined; webhookUri?: string | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | 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; 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; } | undefined; }>, "optimisticData"> & { optimisticData?: { userId: string; id: string; connectionId: string; integrationId: string; tenantId?: string | undefined; name?: string | undefined; config?: { type: import("@membranehq/sdk").ExternalEventSubscriptionType; dataSource?: { key?: any; collectionKey?: any; collectionParameters?: any; udm?: any; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; path?: any; defaultPath?: any; } | undefined; eventKey?: string | undefined; eventParameters?: any; } | undefined; status?: import("@membranehq/sdk").ExternalEventSubscriptionStatus | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; isRealTime?: boolean | undefined; requiresPull?: boolean | undefined; requiresFullSync?: boolean | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; stateData?: any; nextPullEventsTimestamp?: number | undefined; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; nextRefreshTimestamp?: number | undefined; globalWebhookKey?: string | undefined; globalWebhookEventSelector?: string | undefined; webhookUri?: string | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | 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; 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; } | undefined; } | undefined; }) | undefined) => Promise; put: (data: undefined, options?: Omit | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | 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; 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; } | undefined; } | undefined, { userId: string; id: string; connectionId: string; integrationId: string; tenantId?: string | undefined; name?: string | undefined; config?: { type: import("@membranehq/sdk").ExternalEventSubscriptionType; dataSource?: { key?: any; collectionKey?: any; collectionParameters?: any; udm?: any; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; path?: any; defaultPath?: any; } | undefined; eventKey?: string | undefined; eventParameters?: any; } | undefined; status?: import("@membranehq/sdk").ExternalEventSubscriptionStatus | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; isRealTime?: boolean | undefined; requiresPull?: boolean | undefined; requiresFullSync?: boolean | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; stateData?: any; nextPullEventsTimestamp?: number | undefined; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; nextRefreshTimestamp?: number | undefined; globalWebhookKey?: string | undefined; globalWebhookEventSelector?: string | undefined; webhookUri?: string | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | 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; 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; } | undefined; }>, "optimisticData"> & { optimisticData?: { userId: string; id: string; connectionId: string; integrationId: string; tenantId?: string | undefined; name?: string | undefined; config?: { type: import("@membranehq/sdk").ExternalEventSubscriptionType; dataSource?: { key?: any; collectionKey?: any; collectionParameters?: any; udm?: any; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; path?: any; defaultPath?: any; } | undefined; eventKey?: string | undefined; eventParameters?: any; } | undefined; status?: import("@membranehq/sdk").ExternalEventSubscriptionStatus | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; isRealTime?: boolean | undefined; requiresPull?: boolean | undefined; requiresFullSync?: boolean | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; stateData?: any; nextPullEventsTimestamp?: number | undefined; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; nextRefreshTimestamp?: number | undefined; globalWebhookKey?: string | undefined; globalWebhookEventSelector?: string | undefined; webhookUri?: string | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | 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; 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; } | undefined; } | undefined; }) => Promise; archive: () => Promise; externalEventSubscription: { userId: string; id: string; connectionId: string; integrationId: string; tenantId?: string | undefined; name?: string | undefined; config?: { type: import("@membranehq/sdk").ExternalEventSubscriptionType; dataSource?: { key?: any; collectionKey?: any; collectionParameters?: any; udm?: any; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; path?: any; defaultPath?: any; } | undefined; eventKey?: string | undefined; eventParameters?: any; } | undefined; status?: import("@membranehq/sdk").ExternalEventSubscriptionStatus | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; isRealTime?: boolean | undefined; requiresPull?: boolean | undefined; requiresFullSync?: boolean | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; stateData?: any; nextPullEventsTimestamp?: number | undefined; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; nextRefreshTimestamp?: number | undefined; globalWebhookKey?: string | undefined; globalWebhookEventSelector?: string | undefined; webhookUri?: string | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | 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; 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; } | undefined; } | undefined; accessor: ExternalEventSubscriptionAccessor | undefined; refresh: () => Promise<{ userId: string; id: string; connectionId: string; integrationId: string; tenantId?: string | undefined; name?: string | undefined; config?: { type: import("@membranehq/sdk").ExternalEventSubscriptionType; dataSource?: { key?: any; collectionKey?: any; collectionParameters?: any; udm?: any; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; path?: any; defaultPath?: any; } | undefined; eventKey?: string | undefined; eventParameters?: any; } | undefined; status?: import("@membranehq/sdk").ExternalEventSubscriptionStatus | undefined; error?: import("@membranehq/sdk").ErrorDataSchema | undefined; isRealTime?: boolean | undefined; requiresPull?: boolean | undefined; requiresFullSync?: boolean | undefined; createdAt?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; stateData?: any; nextPullEventsTimestamp?: number | undefined; pullUpdatesIntervalSeconds?: number | undefined; fullSyncIntervalSeconds?: number | undefined; nextRefreshTimestamp?: number | undefined; globalWebhookKey?: string | undefined; globalWebhookEventSelector?: string | undefined; webhookUri?: string | undefined; user?: { id: string; name: string; internalId: string; meta?: Record | undefined; fields?: Record | undefined; credentials?: any; lastActiveAt?: string | undefined; isTest?: boolean | undefined; isBillable?: boolean | undefined; isActive?: boolean | undefined; aiCreditsRolling30DayLimit?: number | null | undefined; createdAt?: string | undefined; archivedAt?: string | 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; 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; } | undefined; }>; setup: () => Promise; subscribe: () => Promise; resubscribe: () => Promise; unsubscribe: () => Promise; pullEvents: () => Promise; };