import { PPIsh } from ".."; export declare function forAll(iterable: Iterable, cb: (v: T) => boolean): boolean; export declare function forAny(iterable: Iterable, cb: (v: T) => boolean): boolean; export declare function assert(condition: boolean, message: string, ...details: PPIsh[]): asserts condition; /** * Recursively search all values in an object or array. * @param obj Object to search recursively * @param matchKey Key an object must have to be matched * @param cb Callback function to check objects with a matching key. * If no callback provided, collects all properties at `matchKey` anywhere in the tree. * If callback returns `true` for `node`, `node[matchKey]` is collected. * If callback returns anything else, returned value is collected. * @param onlyFirst Whether to stop after first located element */ export declare function deepFindIn(obj: any, matchKey: string | number, cb?: (o: any) => any, onlyFirst?: boolean): any[]; type AmbiguousArray = T[] | readonly T[]; type KeysToValues> = Keys["length"] extends 0 ? [] : Keys extends readonly [infer T1 extends keyof Obj, ...infer Rest] | [infer T1 extends keyof Obj, ...infer Rest] ? Rest extends AmbiguousArray ? [Obj[T1], ...KeysToValues] : [Obj[T1]] : []; export declare function extractProperties>(obj: Obj, keys: Keys): KeysToValues; export declare const coerceArray: (doc: T | T[]) => T[]; type Constructor = new (...args: any[]) => C; export declare const isInstanceOf: []>(node: any, ...nodeTypes: NodeTypes) => node is InstanceType; export {}; //# sourceMappingURL=utils.d.ts.map