import { QueryRunner } from 'typeorm'; import { ChatflowType } from '../../Interface'; import { UsageCacheManager } from '../../UsageCacheManager'; import { ChatFlow, EnumChatflowType } from '../../database/entities/ChatFlow'; export declare const enum ChatflowErrorMessage { INVALID_CHATFLOW_TYPE = "Invalid Chatflow Type", INVALID_CHATFLOW_ID = "Invalid Chatflow ID", WORKSPACE_ID_REQUIRED = "Workspace ID is required" } export declare function validateChatflowType(type: ChatflowType | undefined): void; declare function getAllChatflowsCountByOrganization(type: ChatflowType, organizationId: string): Promise; declare const _default: { assertChatflowIdsInWorkspace: (chatflowIds: string[], workspaceId: string, queryRunner?: QueryRunner) => Promise; checkIfChatflowIsValidForStreaming: (chatflowId: string) => Promise; checkIfChatflowIsValidForUploads: (chatflowId: string) => Promise; deleteChatflow: (chatflowId: string, orgId: string, workspaceId: string, userPermittedTypes: EnumChatflowType[]) => Promise; getAllChatflows: (type?: ChatflowType, workspaceId?: string, page?: number, limit?: number) => Promise; getAllChatflowsCount: (type?: ChatflowType, workspaceId?: string) => Promise; getChatflowByApiKey: (apiKeyId: string, workspaceId: string, keyonly?: unknown) => Promise; getChatflowById: (chatflowId: string, workspaceId?: string) => Promise; getChatflowByIdForWorkspace: (chatflowId: string, workspaceId: string | undefined) => Promise; saveChatflow: (newChatFlow: ChatFlow, orgId: string, workspaceId: string, subscriptionId: string, usageCacheManager: UsageCacheManager) => Promise; updateChatflow: (chatflow: ChatFlow, updateChatFlow: ChatFlow, orgId: string, workspaceId: string, subscriptionId: string) => Promise; getSinglePublicChatbotConfig: (chatflowId: string) => Promise; checkIfChatflowHasChanged: (chatflowId: string, lastUpdatedDateTime: string, workspaceId: string) => Promise; getAllChatflowsCountByOrganization: typeof getAllChatflowsCountByOrganization; setWebhookSecret: (chatflowId: string, workspaceId: string) => Promise<{ webhookSecret: string; }>; clearWebhookSecret: (chatflowId: string, workspaceId: string) => Promise; getWebhookSecret: (chatflowId: string, workspaceId: string) => Promise; }; export default _default;