import * as t from 'io-ts'; import { Json } from 'io-ts-types'; export declare const GenericHttpRequest: import("./utils").OptionalizedC<{ params: t.RecordC; query: t.RecordC]>>; headers: t.UnionC<[t.RecordC, t.UndefinedC]>; body: t.UnionC<[t.Type, t.UndefinedC]>; }>; export declare type HttpRequestCodec = t.Type, unknown>; export declare type HttpRequestCombinatorProps = { params?: NonNullable; query?: NonNullable; headers?: NonNullable; body?: NonNullable; }; declare type EmitOutputTypeErrors

= P extends undefined ? P : { [K in keyof P & string]: P[K] extends t.Type ? P[K] : `Codec's output type is not assignable to \`${OName}\`. Try using one like \`NumberFromString\``; }; declare type QueryValue = string | string[] | undefined; declare type ParamValue = string | undefined; declare type HeaderValue = string | undefined; declare type EmitPropsErrors

= { params?: EmitOutputTypeErrors; query?: EmitOutputTypeErrors; headers?: EmitOutputTypeErrors; }; export declare function httpRequest>(props: Props, name?: string): t.Type["params" | "query" | keyof Props] extends infer T ? T extends import("./utils").NestedType<{ query: {}; params: {}; } & Props>["params" | "query" | keyof Props] ? T extends any ? (x: T) => any : never : never : never) extends (x: infer R) => any ? R : never>, import("./utils").Simplify>, unknown>; export {}; //# sourceMappingURL=httpRequest.d.ts.map