import type { IHttpRequestOptions } from 'n8n-workflow'; import type { HttpRequestClientOptions } from './client-options'; import type { HttpRequestClient, OutboundHttp } from './outbound-http'; export interface Route { method?: string; pathname: string; status?: number; body?: unknown; networkError?: 'ECONNREFUSED'; } type AnyFn = (...args: any[]) => any; export type MockFnFactory = (impl: T) => T & { mock: { calls: Array>; }; }; export declare function createFakeOutboundHttp(routes: Route[], fn: MockFnFactory): { outboundHttp: OutboundHttp; httpRequest: ((options: IHttpRequestOptions) => Promise) & { mock: { calls: [options: IHttpRequestOptions][]; }; }; requests: ((options?: HttpRequestClientOptions) => HttpRequestClient) & { mock: { calls: [options?: HttpRequestClientOptions | undefined][]; }; }; }; export {};