export { runTelefunc }; export type { HttpResponse }; import { Telefunc } from './getContext.js'; /** The HTTP Response of a telefunction remote call HTTP Request */ type HttpResponse = { /** HTTP Response Status Code */ statusCode: 200 | 400 | 403 | 422 | 500; /** HTTP Response Body */ body: string; /** HTTP Response Header `Content-Type` */ contentType: 'text/plain'; /** HTTP Response Header `ETag` */ etag: string | null; /** Error thrown by your telefunction */ err?: unknown; }; declare function runTelefunc(httpRequestResolved: Parameters[0]): Promise; declare function runTelefunc_({ request, context, }: { request: Request; context?: Telefunc.Context; }): Promise;