import { FindFlowsQuery } from '@membranehq/sdk'; export declare function useFlows(query?: FindFlowsQuery): { items: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; flowId?: string | undefined; universalFlowId?: string | undefined; parametersSchema?: import("@membranehq/sdk").DataSchema | undefined; parameters?: any; enabled?: boolean | undefined; nodes?: Record | undefined; autoCreateInstances?: boolean | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; isCustomized?: boolean | undefined; flowRevision?: string | undefined; universalFlowRevision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; customized?: { name?: boolean | undefined; nodes?: boolean | undefined; } | undefined; dependencies?: any[] | undefined; userId?: string | undefined; tenantId?: string | 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; appliedToIntegrations?: { element: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; flowId?: string | undefined; universalFlowId?: string | undefined; parametersSchema?: import("@membranehq/sdk").DataSchema | undefined; parameters?: any; enabled?: boolean | undefined; nodes?: Record | undefined; autoCreateInstances?: boolean | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; isCustomized?: boolean | undefined; flowRevision?: string | undefined; universalFlowRevision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; customized?: { name?: boolean | undefined; nodes?: boolean | undefined; } | undefined; dependencies?: any[] | undefined; userId?: string | undefined; tenantId?: string | 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; 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; flow?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; flowId?: string | undefined; universalFlowId?: string | undefined; parametersSchema?: import("@membranehq/sdk").DataSchema | undefined; parameters?: any; enabled?: boolean | undefined; nodes?: Record | undefined; autoCreateInstances?: boolean | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; isCustomized?: boolean | undefined; flowRevision?: string | undefined; universalFlowRevision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; customized?: { name?: boolean | undefined; nodes?: boolean | undefined; } | undefined; dependencies?: any[] | undefined; userId?: string | undefined; tenantId?: string | undefined; } | undefined; }[]; refresh: () => Promise; refreshing: boolean; loadMore: () => Promise; loadingMore: boolean; loading: boolean; error: any; flows: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; flowId?: string | undefined; universalFlowId?: string | undefined; parametersSchema?: import("@membranehq/sdk").DataSchema | undefined; parameters?: any; enabled?: boolean | undefined; nodes?: Record | undefined; autoCreateInstances?: boolean | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; isCustomized?: boolean | undefined; flowRevision?: string | undefined; universalFlowRevision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; customized?: { name?: boolean | undefined; nodes?: boolean | undefined; } | undefined; dependencies?: any[] | undefined; userId?: string | undefined; tenantId?: string | 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; appliedToIntegrations?: { element: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; flowId?: string | undefined; universalFlowId?: string | undefined; parametersSchema?: import("@membranehq/sdk").DataSchema | undefined; parameters?: any; enabled?: boolean | undefined; nodes?: Record | undefined; autoCreateInstances?: boolean | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; isCustomized?: boolean | undefined; flowRevision?: string | undefined; universalFlowRevision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; customized?: { name?: boolean | undefined; nodes?: boolean | undefined; } | undefined; dependencies?: any[] | undefined; userId?: string | undefined; tenantId?: string | 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; 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; flow?: { id: string; name: string; key?: string | undefined; description?: string | undefined; integrationId?: string | undefined; integrationKey?: string | undefined; uuid?: string | undefined; meta?: Record | undefined; integrationUuid?: string | undefined; parentUuid?: string | undefined; parentKey?: string | undefined; isUniversal?: boolean | undefined; externalAppId?: string | undefined; externalAppUuid?: string | undefined; externalAppKey?: string | undefined; connectionId?: string | undefined; instanceKey?: string | undefined; flowId?: string | undefined; universalFlowId?: string | undefined; parametersSchema?: import("@membranehq/sdk").DataSchema | undefined; parameters?: any; enabled?: boolean | undefined; nodes?: Record | undefined; autoCreateInstances?: boolean | undefined; errors?: import("@membranehq/sdk").ErrorDataSchema[] | undefined; revision?: string | undefined; archivedAt?: string | undefined; isDeactivated?: boolean | undefined; isReadOnly?: boolean | undefined; isCustomized?: boolean | undefined; flowRevision?: string | undefined; universalFlowRevision?: string | undefined; createdAt?: string | undefined; updatedAt?: string | undefined; state?: import("@membranehq/sdk").WorkspaceElementState | undefined; customized?: { name?: boolean | undefined; nodes?: boolean | undefined; } | undefined; dependencies?: any[] | undefined; userId?: string | undefined; tenantId?: string | undefined; } | undefined; }[]; };