import type { ReadableStreamLike } from "./utils/stream"; import type { DecodeOptions } from "./decode"; import type { SplitUndefined } from "./context"; /** * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. * @throws {@link DecodeError} if the buffer contains invalid data. */ export declare function decodeAsync(streamLike: ReadableStreamLike | BufferSource>, options?: DecodeOptions>): Promise; /** * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. * @throws {@link DecodeError} if the buffer contains invalid data. */ export declare function decodeArrayStream(streamLike: ReadableStreamLike | BufferSource>, options?: DecodeOptions>): AsyncGenerator; /** * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. * @throws {@link DecodeError} if the buffer contains invalid data. */ export declare function decodeMultiStream(streamLike: ReadableStreamLike | BufferSource>, options?: DecodeOptions>): AsyncGenerator; /** * @deprecated Use {@link decodeMultiStream()} instead. */ export declare function decodeStream(streamLike: ReadableStreamLike | BufferSource>, options?: DecodeOptions>): AsyncGenerator;