import { Vector3 } from '../bundle/sdk'; import { IMPConfig } from './types'; export declare let generatedIds: Array; export declare function meterToMillimeter(meter: number, decimal?: number): number; export declare function generateRandomUniqueNumber(currentIds: Array): number; export declare function generateUUID(config?: { length?: number; separator?: string; }): string; export declare function generateRandomUsername(): string; export declare function useHexToRgb(hexcode: string | number): { r: number; g: number; b: number; }; export declare function useRgbToHex(color: { r: number; g: number; b: number; }): string; export declare function convertToCssRgb(values: { r: number; g: number; b: number; }): string; export declare function arrayBufferToBase64(buffer: any): string; export declare function isUrlValid(userInput: string): boolean; export declare function dateTimeFormat(d: any): string; export declare function stringContains(str: string, target: string, isCaseSensitive?: boolean): boolean; export declare function getURLParams(param: string): string; export declare function useCapitalizeFirstLetter(string: string): string; /** * Basic URL validation * @param string * @returns */ export declare function isValidUrl(url: string): Promise; export declare function bytesToMegabytes(bytes: number): number; export declare function addVectors(a: Vector3, b: Vector3): Vector3; export declare function scaleVector(v: Vector3, scale: number): Vector3; export declare function formatMatterportUrl(url: string): string; export declare function radiansToDegrees(rotationObj: Vector3): Vector3; export declare function degreesToRadians(rotationObj: Vector3): Vector3; export declare let _bundleVersion: string; /** * Initialize showcase bundle version */ export declare function initBundleVersion(mpConfig: IMPConfig): Promise; /** * Returns bundle version * @returns _bundleVersion Matterport showcase bundle version */ export declare function getBundleVersion(): string; export declare function getPolygonArea(vertices: Array): number; export declare function extractUUID(partitionName: string): string; export declare function debounce(func: Function, delay: number): (...args: any[]) => void; /** * Performs a deep comparison between two values to determine if they are equivalent. * @param value First value to compare * @param other Second value to compare * @returns boolean indicating if the values are equivalent */ export declare function isEqual(value: any, other: any): boolean; /** * Replaces a specific word in a string with another word, preserving the string structure * Case insensitive version * @param originalString The original string to modify * @param targetWord The word to find and replace * @param replacementWord The word to replace the target with * @returns The modified string with the replacement word */ export declare function replaceWordInString(originalString: string, targetWord: string, replacementWord: string, caseInsensitive?: boolean): string; /** * Checks if an HTML element is visible in the browser viewport. * @param element The HTML element to check for visibility * @returns */ export declare function isElementVisible(element: HTMLElement): boolean; export declare const millimetersToMeters: (value: number) => number; export declare const centimetersToMeters: (value: number) => number; export declare const feetToMeters: (value: number) => number; export declare const inchesToMeters: (value: number) => number; export declare function getUnitConverter(unit: 'mm' | 'cm' | 'm' | 'ft' | 'in'): ((value: number) => number); /** * Returns the path to an asset placed in the static folder * @param filename - filename of the file including the extension. If the file is placed in a subfolder of static folder include that without any / in the beginning * @returns */ export declare function getAssetUrl(filename: string): string; export declare function convertMeasurement(value: any, fromUnit: any, toUnit: any): number; export declare function showLoader(visible: boolean): void; export declare function percentToScale(percentValue: Vector3): Vector3; export declare function scaleToPercent(scaleValue: Vector3): Vector3; export declare function isVec3Equal(a: any, b: any): boolean; export declare function isQuatEqual(a: any, b: any): boolean;