export { telefunc }; import { HttpResponse } from './runTelefunc.js'; import { Telefunc } from './getContext.js'; import type { Readable } from 'node:stream'; type HttpRequest = { /** The URL of the HTTP Request */ url: string; /** The method of the HTTP Request ('GET', 'POST', ...) */ method: string; /** The body of HTTP Request. */ body: string; /** The context object, see https://telefunc.com/getContext */ context?: Telefunc.Context; } | { /** The request object. */ request: Request; /** The context object, see https://telefunc.com/getContext */ context?: Telefunc.Context; } | { /** The URL of the HTTP Request */ url: string; /** The method of the HTTP Request ('GET', 'POST', ...) */ method: string; /** The Node.js `req` readable stream. */ readable: Readable; /** The Content-Type header value */ contentType: string; /** The context object, see https://telefunc.com/getContext */ context?: Telefunc.Context; }; /** Get HTTP Response for a telefunction remote call HTTP Request. * @returns HTTP Response */ declare function telefunc(httpRequest: HttpRequest): Promise;