import type { Readable } from 'stream'; /** Minimal shape for Node.js Buffer-like values */ type NodeBufferLike = { buffer: ArrayBufferLike; isBuffer: true; }; /** Minimal shape for Node.js writable streams */ type NodeWritableStream = { end: (...args: unknown[]) => unknown; write: (...args: unknown[]) => unknown; writable: boolean; }; /** Minimal shape for WritableStream-like DOM implementations */ type WritableDOMStreamLike = WritableStream | { abort: () => unknown; getWriter: () => unknown; }; /** A DOM or Node readable stream */ export type ReadableStreamType = ReadableStream | Readable; /** Checks whether a value is a non-null object */ export declare const isObject: (value: unknown) => value is object; /** Checks whether a value is a plain object (created by the Object constructor) */ export declare const isPureObject: (value: unknown) => value is Record; /** Checks whether a value is an ArrayBuffer */ export declare const isArrayBuffer: (value: unknown) => value is ArrayBuffer; /** Checks whether a value is an ArrayBuffer */ export declare const isSharedArrayBuffer: (value: unknown) => value is SharedArrayBuffer; /** Checks whether a value is ArrayBuffer-like */ export declare const isArrayBufferLike: (value: unknown) => value is ArrayBufferLike; /** Checks whether a value behaves like a promise */ export declare const isPromise: (value: unknown) => value is Promise; /** Checks whether a value implements the iterable protocol */ export declare const isIterable: (value: unknown) => value is Iterable; /** Checks whether a value implements the async iterable protocol */ export declare const isAsyncIterable: (value: unknown) => value is AsyncIterable; /** Checks whether a value is an iterator (has a next function) */ export declare const isIterator: (value: unknown) => value is Iterator; /** Checks whether a value is a fetch Response or a duck-typed equivalent */ export declare const isResponse: (value: unknown) => value is Response; /** Checks whether a value is a File */ export declare const isFile: (value: unknown) => value is File; /** Checks whether a value is a Blob */ export declare const isBlob: (value: unknown) => value is Blob; /** Checks for Node.js Buffers without triggering bundlers to include the Buffer polyfill */ export declare const isBuffer: (value: unknown) => value is NodeBufferLike; /** Checks whether a value looks like a DOM WritableStream */ export declare const isWritableDOMStream: (value: unknown) => value is WritableDOMStreamLike; /** Checks whether a value looks like a DOM ReadableStream */ export declare const isReadableDOMStream: (value: unknown) => value is ReadableStream; /** Checks whether a value looks like a Node.js writable stream */ export declare const isWritableNodeStream: (value: unknown) => value is NodeWritableStream; /** Checks whether a value looks like a Node.js readable stream */ export declare const isReadableNodeStream: (value: unknown) => value is Readable; /** Checks whether a value is any readable stream (DOM or Node.js) */ export declare const isReadableStream: (value: unknown) => value is ReadableStreamType; /** Checks whether a value is any writable stream (DOM or Node.js) */ export declare const isWritableStream: (value: unknown) => value is WritableStream | NodeWritableStream; export {}; //# sourceMappingURL=is-type.d.ts.map