import { type Doddle, type DoddleAsync } from "./doddle/index.js"; import type { DoddleReadableStream } from "./readable-stream-polyfill.js"; export declare function _iter(input: Iterable): Iterator; export declare function _aiter(input: AsyncIterable): AsyncIterator; export declare function _xiter(input: Iterable | AsyncIterable): Iterator | AsyncIterator; export declare function isObject(value: T): value is T & {}; export declare function isFunction(value: any): value is (...args: any[]) => any; export declare function isArrayLike(value: any): value is ArrayLike; export declare function isIterable(value: any): value is Iterable; export declare const orderedStages: readonly [undefined, "before", "after", "both"]; export declare const isInt: (number: unknown) => boolean; export declare const isBool: (value: boolean) => boolean; export declare const isPair: (value: any) => boolean; export declare const isPosInt: (value: number) => boolean; export declare const enum Stage { Before = 1, After = 2, Both = 3 } export declare function isAsyncIterable(value: any): value is AsyncIterable; export declare function isReadableStream(value: any): value is DoddleReadableStream; export declare function isNextable(value: any): value is Iterator | AsyncIterator; export declare function getClassName(something: any): string; export declare function getValueDesc(object: any): string | undefined; /** * Checks if the given value is a thenable. * * @param what The value to check. */ export declare function isThenable(what: unknown): what is PromiseLike; export declare function isDoddle(value: any): value is Doddle; export declare function returnKvp(input: any, key: any, value: any): any[] | PromiseLike; export type MaybePromise = T | PromiseLike; export type MaybeDoddle = T | Doddle; export type MaybeDoddleAsync = T | Doddle | DoddleAsync; export declare function shuffleArray(array: T[]): T[]; export declare function createCompare(desc: boolean): (a: any, b: any) => number; export declare function createCompareKey(desc: boolean): (a: any, b: any) => number; //# sourceMappingURL=utils.d.ts.map