import { FileProcessStatus, FileType, KnowledgeBase, File as KnowledgeBaseFile, Nullable } from "instill-sdk"; export type UserSubscriptionPlan = string; export type OrganizationSubscriptionPlan = string; export type UserSubscription = { plan: string; } | null; export type OrganizationSubscription = { plan: string; } | null; export declare const getStatusSortValue: (status: FileProcessStatus) => number; export declare const getFileIcon: (fileType: string) => import("react/jsx-runtime").JSX.Element; export declare const getFileType: (file: File) => FileType; export declare const convertFileType: (type: string) => string; export declare const truncateName: (name: string, maxLength?: number) => string; export declare const getPlanMaxFileSize: (plan: UserSubscriptionPlan | OrganizationSubscriptionPlan) => number; export declare const getPlanStorageLimit: (plan: UserSubscriptionPlan | OrganizationSubscriptionPlan) => number; export declare const getKnowledgeBaseLimit: (plan: UserSubscriptionPlan | OrganizationSubscriptionPlan) => number; export declare const getSubscriptionInfo: (namespaceType: Nullable<"user" | "organization">, userSub: Nullable, orgSub: Nullable) => { subscription: { plan: string; } | null; plan: string; planStorageLimit: number; planMaxFileSize: number; }; export declare const checkNamespaceType: (selectedNamespace: string, accessToken: string) => Promise<"user" | "organization" | null>; export declare const calculateRemainingStorage: (planStorageLimit: number, usedStorage: number) => number; export declare const getPlanStorageLimitMB: (size: number) => string; export declare const shouldShowStorageWarning: (remainingStorageSpace: number, planStorageLimit: number) => boolean; export declare const formatFileSize: (bytes: number | undefined) => string; export declare const formatDateFileTableRow: (dateString: string) => string; export declare const convertTagsToArray: (tags: string | string[] | undefined) => string[]; export declare const formatName: (name: string) => string; export declare const isFile: (value: unknown) => value is File; export declare const readFileAsBase64: (file: File) => Promise; export declare const validateFile: (file: File, planMaxFileSize: number, remainingStorageSpace: number, existingFiles: KnowledgeBaseFile[], isLocalEnvironment: boolean) => { isValid: boolean; error: string; } | { isValid: boolean; error: null; }; export declare const getKnowledgeBaseNameById: (knowledgeBaseId: string | undefined, knowledgeBases: KnowledgeBase[]) => string; export declare const getKnowledgeBaseIdByName: (knowledgeBaseName: string, knowledgeBases: KnowledgeBase[] | undefined) => string | undefined; export declare const getFileTypeByExtension: (extension: string) => "TYPE_UNSPECIFIED" | "TYPE_TEXT" | "TYPE_MARKDOWN" | "TYPE_HTML" | "TYPE_CSV" | "TYPE_PDF" | "TYPE_DOC" | "TYPE_DOCX" | "TYPE_PPT" | "TYPE_PPTX" | "TYPE_XLS" | "TYPE_XLSX"; //# sourceMappingURL=helpers.d.ts.map