import { type ShortcutXLModelStreamErrorDetails } from '../contracts/model-stream.js';
export declare class ShortcutXLHttpStreamError extends Error {
    readonly details: ShortcutXLModelStreamErrorDetails | undefined;
    constructor(message: string, details: ShortcutXLModelStreamErrorDetails | undefined);
}
export declare function buildHttpStreamError(response: Response): Promise<ShortcutXLHttpStreamError>;
export declare function streamErrorDetails(error: unknown): ShortcutXLModelStreamErrorDetails | undefined;
export declare function isRetryableStreamError(error: unknown): boolean;
export declare function computeRetryDelayMs(error: unknown, attempt: number, baseDelayMs: number, maxDelayMs: number, serverMaxDelayMs: number): number;
//# sourceMappingURL=stream-errors.d.ts.map