import { AppEventSubscriptionAccessor, AppEventSubscriptionSelector, AppEventSubscriptionUpdateRequest } from '@membranehq/sdk'; export declare function useAppEventSubscription(selector: string | AppEventSubscriptionSelector | undefined): { accessor: AppEventSubscriptionAccessor | undefined; loading: boolean; saving: boolean; error: any; refresh: () => Promise<{ id: string; name: string; revision: string; appEventTypeId: string; isSubscribed: boolean; webhookUri: string; subscriptionRequest: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; }; userId: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; instanceKey?: string | undefined; schema?: import("@membranehq/sdk").DataSchema | undefined; subscriptionResponse?: any; archivedAt?: string | undefined; tenantId?: string | undefined; appEventType?: { id: string; name: string; revision: string; webhookKey: string; globalWebhookUri: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; archivedAt?: string | undefined; subscribeRequest?: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; } | undefined; example?: any; schema?: import("@membranehq/sdk").DataSchema | undefined; tenantIdFormula?: any; userIdFormula?: any; } | 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; }>; refreshing: boolean; create: (data: AppEventSubscriptionUpdateRequest) => Promise<{ id: string; name: string; revision: string; appEventTypeId: string; isSubscribed: boolean; webhookUri: string; subscriptionRequest: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; }; userId: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; instanceKey?: string | undefined; schema?: import("@membranehq/sdk").DataSchema | undefined; subscriptionResponse?: any; archivedAt?: string | undefined; tenantId?: string | undefined; appEventType?: { id: string; name: string; revision: string; webhookKey: string; globalWebhookUri: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; archivedAt?: string | undefined; subscribeRequest?: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; } | undefined; example?: any; schema?: import("@membranehq/sdk").DataSchema | undefined; tenantIdFormula?: any; userIdFormula?: any; } | 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; } | undefined>; patch: (data: Partial, options?: (Omit | undefined; query?: Record | undefined; body?: any; }; userId: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; instanceKey?: string | undefined; schema?: import("@membranehq/sdk").DataSchema | undefined; subscriptionResponse?: any; archivedAt?: string | undefined; tenantId?: string | undefined; appEventType?: { id: string; name: string; revision: string; webhookKey: string; globalWebhookUri: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; archivedAt?: string | undefined; subscribeRequest?: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; } | undefined; example?: any; schema?: import("@membranehq/sdk").DataSchema | undefined; tenantIdFormula?: any; userIdFormula?: any; } | 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; } | undefined, { id: string; name: string; revision: string; appEventTypeId: string; isSubscribed: boolean; webhookUri: string; subscriptionRequest: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; }; userId: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; instanceKey?: string | undefined; schema?: import("@membranehq/sdk").DataSchema | undefined; subscriptionResponse?: any; archivedAt?: string | undefined; tenantId?: string | undefined; appEventType?: { id: string; name: string; revision: string; webhookKey: string; globalWebhookUri: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; archivedAt?: string | undefined; subscribeRequest?: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; } | undefined; example?: any; schema?: import("@membranehq/sdk").DataSchema | undefined; tenantIdFormula?: any; userIdFormula?: any; } | 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; }>, "optimisticData"> & { optimisticData?: { id: string; name: string; revision: string; appEventTypeId: string; isSubscribed: boolean; webhookUri: string; subscriptionRequest: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; }; userId: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; instanceKey?: string | undefined; schema?: import("@membranehq/sdk").DataSchema | undefined; subscriptionResponse?: any; archivedAt?: string | undefined; tenantId?: string | undefined; appEventType?: { id: string; name: string; revision: string; webhookKey: string; globalWebhookUri: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; archivedAt?: string | undefined; subscribeRequest?: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; } | undefined; example?: any; schema?: import("@membranehq/sdk").DataSchema | undefined; tenantIdFormula?: any; userIdFormula?: any; } | 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; } | undefined; }) | undefined) => Promise; put: (data: AppEventSubscriptionUpdateRequest, options?: Omit | undefined; query?: Record | undefined; body?: any; }; userId: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; instanceKey?: string | undefined; schema?: import("@membranehq/sdk").DataSchema | undefined; subscriptionResponse?: any; archivedAt?: string | undefined; tenantId?: string | undefined; appEventType?: { id: string; name: string; revision: string; webhookKey: string; globalWebhookUri: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; archivedAt?: string | undefined; subscribeRequest?: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; } | undefined; example?: any; schema?: import("@membranehq/sdk").DataSchema | undefined; tenantIdFormula?: any; userIdFormula?: any; } | 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; } | undefined, { id: string; name: string; revision: string; appEventTypeId: string; isSubscribed: boolean; webhookUri: string; subscriptionRequest: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; }; userId: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; instanceKey?: string | undefined; schema?: import("@membranehq/sdk").DataSchema | undefined; subscriptionResponse?: any; archivedAt?: string | undefined; tenantId?: string | undefined; appEventType?: { id: string; name: string; revision: string; webhookKey: string; globalWebhookUri: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; archivedAt?: string | undefined; subscribeRequest?: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; } | undefined; example?: any; schema?: import("@membranehq/sdk").DataSchema | undefined; tenantIdFormula?: any; userIdFormula?: any; } | 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; }>, "optimisticData"> & { optimisticData?: { id: string; name: string; revision: string; appEventTypeId: string; isSubscribed: boolean; webhookUri: string; subscriptionRequest: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; }; userId: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; instanceKey?: string | undefined; schema?: import("@membranehq/sdk").DataSchema | undefined; subscriptionResponse?: any; archivedAt?: string | undefined; tenantId?: string | undefined; appEventType?: { id: string; name: string; revision: string; webhookKey: string; globalWebhookUri: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; archivedAt?: string | undefined; subscribeRequest?: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; } | undefined; example?: any; schema?: import("@membranehq/sdk").DataSchema | undefined; tenantIdFormula?: any; userIdFormula?: any; } | 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; } | undefined; }) => Promise; archive: () => Promise; appEventSubscription: { id: string; name: string; revision: string; appEventTypeId: string; isSubscribed: boolean; webhookUri: string; subscriptionRequest: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; }; userId: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; instanceKey?: string | undefined; schema?: import("@membranehq/sdk").DataSchema | undefined; subscriptionResponse?: any; archivedAt?: string | undefined; tenantId?: string | undefined; appEventType?: { id: string; name: string; revision: string; webhookKey: string; globalWebhookUri: 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; createdAt?: string | undefined; updatedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; archivedAt?: string | undefined; subscribeRequest?: { uri: any; method?: import("@membranehq/sdk").HttpRequestMethod | undefined; headers?: Record | undefined; query?: Record | undefined; body?: any; } | undefined; example?: any; schema?: import("@membranehq/sdk").DataSchema | undefined; tenantIdFormula?: any; userIdFormula?: any; } | 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; } | undefined; };