import { QueryRunner } from 'typeorm'; import { ChatflowType } from '../../Interface'; import { UsageCacheManager } from '../../UsageCacheManager'; import { ChatFlow } from '../../database/entities/ChatFlow'; declare function getAllChatflowsCountByOrganization(type: ChatflowType, organizationId: string): Promise; declare const _default: { checkIfChatflowIsValidForStreaming: (chatflowId: string) => Promise; checkIfChatflowIsValidForUploads: (chatflowId: string) => Promise; deleteChatflow: (chatflowId: string, orgId: string, workspaceId: string) => Promise; getAllChatflows: (type?: ChatflowType, workspaceId?: string) => Promise; getAllChatflowsCount: (type?: ChatflowType, workspaceId?: string) => Promise; getChatflowByApiKey: (apiKeyId: string, keyonly?: unknown) => Promise; getChatflowById: (chatflowId: string) => Promise; saveChatflow: (newChatFlow: ChatFlow, orgId: string, workspaceId: string, subscriptionId: string, usageCacheManager: UsageCacheManager) => Promise; importChatflows: (newChatflows: Partial[], orgId: string, _: string, subscriptionId: string, queryRunner?: QueryRunner) => Promise; updateChatflow: (chatflow: ChatFlow, updateChatFlow: ChatFlow, orgId: string, workspaceId: string, subscriptionId: string) => Promise; getSinglePublicChatflow: (chatflowId: string) => Promise; getSinglePublicChatbotConfig: (chatflowId: string) => Promise; checkIfChatflowHasChanged: (chatflowId: string, lastUpdatedDateTime: string) => Promise; getAllChatflowsCountByOrganization: typeof getAllChatflowsCountByOrganization; }; export default _default;