Initial commit - full huishou project

This commit is contained in:
jiapengyu
2026-07-27 14:07:26 +08:00
commit 60790ad1b3
39127 changed files with 5989265 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
/// <reference types="node" />
import EventEmitter = require('events');
import { ProxyStream } from './as-stream';
import { RequestError, TimeoutError } from './errors';
import { NormalizedOptions } from './types';
export interface RequestAsEventEmitter extends EventEmitter {
retry: (error: TimeoutError | RequestError) => boolean;
abort: () => void;
}
declare const _default: (options: NormalizedOptions) => RequestAsEventEmitter;
export default _default;
export declare const proxyEvents: (proxy: EventEmitter | ProxyStream<unknown>, emitter: RequestAsEventEmitter) => void;