import { IteratorBoolCallback, IteratorCallback } from "./interfaces/iterator-callbacks"; import { Schema, ValidateFunction } from "ajv"; import { AssertSchemaType } from "./interfaces/schema"; import { iMessageAndCallback } from "./interfaces/imessage-and-callback"; export declare const toArray: (value: any) => T[]; export declare const toJson: (json: string) => T; export declare const isNullOrUndefined: (obj: unknown) => boolean; export declare const isAsyncCallback: (func: Function) => boolean; export declare const toOrdinal: (n: number) => string; export declare const toType: (obj: any) => string; export declare const arrayUnique: (arr: T[]) => T[]; export declare const uniqueId: () => string; export declare const openInBrowser: (content: string) => Promise; export declare const runAsync: (callback: Function, delay?: number) => void; export declare const asyncFindIndex: (array: any[], callback: IteratorBoolCallback) => Promise; export declare const asyncFind: (array: T[], callback: IteratorBoolCallback) => Promise; export declare const asyncFindNot: (array: T[], callback: IteratorBoolCallback) => Promise; export declare const asyncUntil: (array: any[], callback: IteratorCallback) => Promise; export declare const asyncForEach: (array: T[], callback: IteratorCallback) => Promise; export declare const asyncEvery: (array: T[], callback: IteratorBoolCallback) => Promise; export declare const asyncFilter: (array: T[], callback: IteratorBoolCallback) => Promise; export declare const asyncMap: (array: F[], callback: IteratorCallback) => Promise; export declare const asyncFlatMap: (array: F[], callback: IteratorCallback) => Promise; export declare const asyncMapToObject: (array: string[], callback: IteratorCallback) => Promise<{ [key: string]: T; }>; export declare function asyncNone(array: T[], callback: IteratorBoolCallback): Promise; export declare function asyncSome(array: T[], callback: IteratorBoolCallback): Promise; export declare function asyncCount(array: T[], callback: IteratorBoolCallback): Promise; export declare const flatten: (items: any[] | { [key: string]: any; }) => T[]; export declare const arrayEquals: (a: any, b: any) => boolean; export declare const arrayExactly: (a: any, b: any) => boolean; export declare function normalizePath(uri: string): string; export declare function ensureFolderExists(path: string): void; export declare function emptyFolder(folderPath: string): Promise; export declare function exitProcess(passed: boolean): void; export declare function getMessageAndCallbackFromOverloading(a: any, b: any, defaultMessage?: string): iMessageAndCallback; export declare const deepEqual: (thisValue: any, thatValue: any) => boolean; export declare const deepStrictEqual: (thisValue: any, thatValue: any) => boolean; export declare const objectContains: (thisValue: any, thatValue: any) => boolean; export declare const objectContainsKeys: (thisValue: any, keys: any) => boolean; export declare const nthIn: (obj: unknown, index: number) => T | null; export declare const firstIn: (obj: any) => T | null; export declare const middleIn: (obj: any) => T | null; export declare const lastIn: (obj: any) => T | null; export declare const random: (min: number, max: number) => number; export declare const randomInt: (min: number, max: number) => number; export declare const randomIn: (obj: any) => T | null; export declare const cast: (val: any) => T; export declare const loadSchemaValidator: (schemaType: AssertSchemaType, schema: Schema) => ValidateFunction; export declare const validateSchema: (thisValue: any, schema: Schema, schemaType: AssertSchemaType) => string[]; export declare const getFunctionArgs: (func: Function) => string[];