/** * Stream module error types. * * All stream-related errors extend StreamError. */ import { BaseError, type BaseErrorOptions } from "../../utils/errors.js"; export { createAbortError } from "../../utils/errors.js"; /** * Base class for all stream-related errors. */ export declare class StreamError extends BaseError { constructor(message: string, options?: BaseErrorOptions); } /** * Error thrown when a stream operation fails due to invalid state. */ export declare class StreamStateError extends StreamError { readonly operation: string; readonly state: string; name: string; constructor(operation: string, state: string, options?: BaseErrorOptions); } /** * Error thrown when data type conversion fails. */ export declare class StreamTypeError extends StreamError { readonly expectedType: string; readonly actualType: string; name: string; constructor(expectedType: string, actualType: string, options?: BaseErrorOptions); } /** * Error thrown when a stream type is not supported. */ export declare class UnsupportedStreamTypeError extends StreamError { readonly operation: string; readonly streamType: string; name: string; constructor(operation: string, streamType: string, options?: BaseErrorOptions); }