@memori.ai/memori-react
Version:
[](https://www.npmjs.com/package/@memori.ai/memori-react)   • 2.34 kB
TypeScript
import { Material, SkinnedMesh } from 'three';
export declare const hasTouchscreen: () => boolean;
export declare const isiOS: () => boolean;
export declare const isAndroid: () => boolean;
export declare const pwdRegEx: RegExp;
export declare const mailRegEx: RegExp;
export declare const usernameRegEx: RegExp;
export declare const validURLRegEx: RegExp;
export declare const isValidUrl: (url: string) => boolean;
export declare function useDebounce<T>(value: T, delay: number): T;
export declare function useDebounceFn<T extends (...args: any) => any>(fn: T, delay: number): T;
export declare const stripDuplicates: (text: string) => string;
export declare const stripEmojis: (text: string) => string;
export declare const stripMarkdown: (text: string) => string;
export declare const stripOutputTags: (text: string) => string;
export declare const stripHTML: (text: string) => string;
export declare const escapeHTML: (text: string) => string;
export declare const getFieldFromCustomData: (fieldName: string, data: string | undefined) => any;
export declare const truncateMessage: (message: string) => string;
export declare const stripObjNulls: (obj: {
[key: string]: any;
}) => {
[x: string]: any;
};
export declare const difference: (origObj: {
[key: string]: any;
}, newObj: {
[key: string]: any;
}) => {
[key: string]: any;
};
export declare function cleanUrl(href: string): string | null;
export declare const mathJaxConfig: {
startup: {
elements: string[];
};
options: {
processHtmlClass: string;
};
tex: {
inlineMath: string[][];
displayMath: string[][];
processEscapes: boolean;
};
asciimath: {
fixphi: boolean;
displaystyle: boolean;
decimalsign: string;
};
skipStartupTypeset: boolean;
chtml: {
displayAlign: string;
};
svg: {
fontCache: string;
};
};
export declare const installMathJaxScript: () => void;
export declare const installMathJax: () => void;
export declare function correctMaterials(materials: {
[key: string]: Material;
}): void;
export declare function isSkinnedMesh(object: any): object is SkinnedMesh;
export declare function disposeObject(object: any): void;
export declare const safeParseJSON: (jsonString: string, fallbackString?: boolean) => any;