export type TFunctionAnyParametersAnyReturn = (...args: Array) => any; export type TArguments = F extends (...args: infer A) => any ? A : never; export interface IRGBA { a?: number; b: number; g: number; r: number; } export interface IHSL { h: number; l: number; s: number; } export interface IHSV { h: number; s: number; v: number; } export declare const ARRAY_INDEX_OF_NOT_FOUND = -1; export declare const ARRAY_SORT_RETURN_CODE_EQUAL = 0; export declare const ARRAY_SORT_RETURN_CODE_GREATER_THAN = 1; export declare const ARRAY_SORT_RETURN_CODE_LESS_THAN = -1; export declare const CACHE_TIME_UNLIMITED = 0; export declare const PARSE_INT_RADIX_10 = 10; export declare const PARSE_INT_RADIX_16 = 16; export declare const SCRIPT_PARSER_PAIRED_SYMBOLS_KEY_ALL = "0"; export declare const SCRIPT_PARSER_QUOTES_KEY_FLAT = "flat"; export declare const SCRIPT_PARSER_QUOTES_KEY_ALL = "0"; export declare const STRING_INDEX_OF_NOT_FOUND = -1; export interface IErrorCode extends Error { details?: string; } export declare class ErrorCode extends Error { constructor(code: string, ...args: Array); tryCatchLog(codeTryCatch: string): ErrorCode; } export declare const arrayDuplicatesExclude: >(a: T) => Array; export declare const arrayPushDistinct: >(a: T, ...args: T) => Array; export declare const arraySortNumberByValue: (a: Array) => Array; export declare const arraySortNumberByValueReverse: (a: Array) => Array; export declare const arraySortStringsByABC: (a: Array) => Array; export declare const arraySortStringsByABCReverse: (a: Array) => Array; export declare const arraySortStringsByLength: (a: Array) => Array; export declare const arraySortStringsByLengthReverse: (a: Array) => Array; export declare function cache(f: F, ...args: TArguments): any; export declare const RATIO_MICROSECONDS_TO_MILLISECONDS = 1000; export declare const cacheStorage: Map; export declare function cacheTime(f: F, time?: number, ...args: TArguments): any; export declare function colorDarker(color: string, level: number): string; export declare function colorDarkerToRGBA(color: string, level: number): IRGBA; export declare function colorHEXAToRGBA(color: string): IRGBA; export interface IColorHEXAStringToRGBAStringOptions { alpha?: number; color: string; } export declare function colorHEXAToRGBAString(options: IColorHEXAStringToRGBAStringOptions | string): string; export declare function colorHSLToRGBA(options: IHSL): IRGBA; export declare function colorHSVToRGBA(options: IHSV): IRGBA; export declare function colorLighter(color: string, level: number): string; export declare function colorLighterToRGBA(color: string, level: number): IRGBA; export declare const REGEXP_RGBA: RegExp; export declare function colorRGBAStringToRGBA(rgba: string): IRGBA; export declare function colorRGBAToHEXA(options: IRGBA | string): string; export declare function colorRGBAToHSL(options: IRGBA): IHSL; export declare function colorRGBAToHSV(options: IRGBA): IHSV; export interface IColorizeOptions { borders?: boolean; node?: HTMLElement | ChildNode; withNodesNested?: boolean; } export declare function colorize({ borders, node, withNodesNested }: IColorizeOptions): void; export declare function debugLabelHas(label: string): boolean; export declare function debugLevelGet(): number; export declare const isArray: >(value: unknown) => value is T; export declare const isBoolean: (value: unknown) => value is boolean; export declare const isError: (value: unknown) => value is Error; export declare const isErrorCode: (value: unknown) => value is IErrorCode; export declare const isFunction: (value: unknown) => value is Function; export declare const isHTMLElement: (value: unknown) => value is HTMLElement; export declare const isNode: (value: unknown) => value is Node; export declare const isNull: (value: unknown) => value is null; export declare const isNullOrUndefined: (value: unknown) => value is null | undefined; export declare const isNumber: (value: unknown) => value is number; export declare const isObjectType: (value: unknown) => value is object | null; export declare const isObject: (value: unknown) => value is T; export declare const isRegExp: (value: unknown) => value is RegExp; export declare const isString: (value: unknown) => value is string; export declare const isUndefined: (val: unknown) => val is undefined; export declare function md5(...args: any[]): string; export declare function memoize(fn: F, cacheTime?: number): F; export declare function memoizeInvalidate(fn: F, cacheTime?: number): [F, (...args: TArguments) => void, () => void]; export declare function numberOfValuesEqualTo(values: Array, equalTo: T): number; export declare function numberRandom(min: number, max?: number): number; export declare const objectClone: (object: T) => T; export declare const objectEmptyValuesDelete: (object: Record) => Record; export declare const objectKeysSort: (object: Record) => Record; interface IObjectMergeOptions { arrayClone?: boolean; arrayPushAll?: boolean; objectClone?: boolean; } export declare const objectMerge: (objectA: T, objectB: Partial, options?: IObjectMergeOptions) => T; export declare function randomEnumValue(anEnum: T): T[keyof T]; type TScriptParserPairedSymbolsReturn = Map> | null; export declare function scriptParserPairedSymbols(stack: string | Array): TScriptParserPairedSymbolsReturn; interface IScriptParserPositionDelimiterOptions { brackets: any; lines?: Array; pathFile: string; startColumn: number; startLine: number; string?: string; } export declare function scriptParserPositionDelimiter({ brackets, lines: linesProperty, pathFile, startColumn, startLine, string, }: IScriptParserPositionDelimiterOptions): [number, number] | null; type TScriptParserQuotesReturn = Map> | null; export declare function scriptParserQuotes(stack: string | Array): TScriptParserQuotesReturn; export declare function scriptParserSingleSymbols(stack: string | Array): Map | null; export declare function sleep(timeoutMs: number): Promise; export declare function sleepSync(ms: number): void; interface IStringReplacePositionOptions { endColumn: number; endLine?: number; replaceTo?: string; startColumn?: number; startLine?: number; string: string; } export declare function stringReplacePositions({ endColumn, endLine, replaceTo, startColumn, startLine, string, }: IStringReplacePositionOptions): string; export declare const stringReplaceWithKeyValue: (string: string, map: Record, keysRegExp?: boolean) => string; interface IStringSelectOptions { endColumn: number; endLine?: number; startColumn?: number; startLine?: number; string: string; } export declare function stringSelect({ endColumn, endLine, startColumn, startLine, string, }: IStringSelectOptions): string | null; export declare const stringSingleLine: (string: string) => string; export declare const stringTrimChars: (string: string, chars?: string) => string; export declare const stringTrimLeftChars: (string: string, chars?: string) => string; export declare const stringTrimRightChars: (string: string, chars?: string) => string; export declare function svgToCssUrl(svg: string): string; export declare function tryCatchLog(tryCatchCode: string, e: unknown): unknown;