import moment from "moment"; import type { TurnProps } from "../Components/Chat"; import type { ChatMessage } from "../Providers/RuntimeContext"; import { FeatureKey, GETExportConversationsItem, REGION_VALUE, V2TurnProps, WorkspaceModel } from "../Types/firebase"; export declare function roundToNearestTenth(num: number): number; export declare function formatSecondsToMinutes(seconds: number): string; export declare function GET_CALL_SERVICE_API_URL(input?: { region: REGION_VALUE; withHttp: boolean; pinggy?: boolean; }): string; export declare function GET_VG_CLOUDFLARE_API_URL({ region, forceLive, }: { region: "eu" | "na"; forceLive?: boolean; }): string; export declare function noMoreThan(inputString: string, maxLength: number): string; export declare const priceTokensArray: { usd: number; tokens: number; }[]; export declare function priceTokenFunction({ usd, tokens, }: { usd: number; tokens: number; }): { tokensPerUsd: number; usdsPerToken: number; i: number; } | undefined; export declare function formatNumCommas(number: number): string; export declare function getUniqueID(prefix: string): string; export declare function getUniqueThing(): string; export declare function copyToClip(text: string): void; export declare function generatePassword(number?: number): string; export declare function waitForElemtQuerySelector(selector: string): Promise; export declare function generateRandomNumber(): number; export declare function areObjectsIdentical(obj1: any, obj2: any): boolean; export declare function deepEqual(obj1: any, obj2: any): boolean; export declare function areObjectsEqual(obj1: any, obj2: any): boolean; export declare function generateRandomSmallCaseId(length?: number): string; export declare function generateRandomId(length?: number): string; export declare function generateCoolId(input: { length?: number; suffix?: string; }): string; export declare const getBrowserName: () => "Chrome" | "Unknown" | "Firefox" | "Edge" | "Safari"; export declare function getOS(): "Windows Phone" | "Android" | "iOS" | "macOS" | "Windows" | "Linux" | "unknown"; export declare const getBrowserLang: () => string; export declare const getCountryCode: () => string; export declare const IP_CONFIG_TOKEN = "2cbe6872dfbe01"; export declare const getIPAddress: () => Promise; export declare const getCountryCodeFromIP: (ipAddress: string) => Promise; export declare function SearchTwoStrings(mainString: string, searchValue: string): boolean; export declare function isElementInViewport(el: any): boolean; export declare function GetBrowserData(): { url: string; params: any; cookies: any; timezone: string; time: moment.Moment; ts: number; userAgent: string; browserName: string; browserVersion: string; lang: string; supportsCookies: boolean; platform: string; screenResolution: string; viewportSize: string; }; export declare function translateReq({ translateTo, text, }: { translateTo: string; text: string; }): Promise; export declare function appendMessageToTurns(input: { turns: TurnProps[]; message: ChatMessage; }): TurnProps[]; export declare function waitForElmV2(selector: any): Promise; export declare function V2ConvosTurnsToText(convos: GETExportConversationsItem[]): string; export declare function V2TurnsToText(turns: V2TurnProps[]): string; export declare function V2ConvosTurnsToCSV(convos: GETExportConversationsItem[]): string; export declare function userCanAccessFeature(input: { user: WorkspaceModel; featureKey: FeatureKey; }): boolean; export declare function extractLangFromVG(lang: string): string; export declare const IS_TEST_PAYMENT: boolean; export declare const PAYPAL_MERCHANT_ID_LIVE = "ARzwltiS5LvmvZFuBNqo9G2ZeC719mcOerMYWWMQ1w-cSrbU3l1ZUZs3ZVWdpXFX5nK6TN8DgiuCyW6J"; export declare const PAYPAL_MERCHANT_ID = "AYQYw_IPvZN0ebKZnWzUyoG1bGptWk6YjIxEfAj9nyv1feI5louqyqwI8EmG9gjUIm7WnYmYfeaXzKim";