import type { DecoderOptions } from "./Decoder.ts"; import type { ReadableStreamLike } from "./utils/stream.ts"; import type { SplitUndefined } from "./context.ts"; /** * @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?: DecoderOptions>): 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?: DecoderOptions>): 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?: DecoderOptions>): AsyncGenerator;