declare function isChatGptUrl(url: string): boolean; declare function isBunRuntime(): boolean; declare function shouldUseNodeHelper(): boolean; declare function resolveNodeBinary(): string; declare function helperScriptPath(): string; /** Terminate the persistent helper daemon (call on plugin teardown). */ export declare function shutdownHelper(): void; /** Drop-in fetch for ChatGPT backend (Node helper daemon under Bun, else global fetch). */ export declare function chatgptFetch(url: string, init?: RequestInit & { stream?: boolean; }): Promise; /** Testing exports */ export declare const httpTesting: { isChatGptUrl: typeof isChatGptUrl; isBunRuntime: typeof isBunRuntime; shouldUseNodeHelper: typeof shouldUseNodeHelper; helperScriptPath: typeof helperScriptPath; resolveNodeBinary: typeof resolveNodeBinary; shutdownHelper: typeof shutdownHelper; helperPid: () => number | undefined; crashHelper: () => void; }; export {}; //# sourceMappingURL=http.d.ts.map