{"version":3,"file":"http.mjs","names":[],"sources":["../src/http.ts"],"sourcesContent":["import {\n  Atomic,\n  IReadableURLSearchParams,\n  IValidation,\n  Resolved,\n} from \"@typia/interface\";\n\nimport { TypeGuardError } from \"./TypeGuardError\";\nimport { NoTransformConfigurationError } from \"./transformers/NoTransformConfigurationError\";\n\n/* ===========================================================\n    HTTP\n      - FORM-DATA\n      - QUERY\n      - HEADERS\n      - PARAMETER\n      - FACTORY FUNCTIONS\n==============================================================\n    FORM-DATA\n----------------------------------------------------------- */\n/**\n * Decodes `FormData` into type `T`.\n *\n * Parses a `FormData` instance with automatic type casting. Properties typed as\n * `boolean`, `bigint`, or `number` are cast from their text, and `Blob` and\n * `File` properties are read as given, except that the text `null` reads as\n * `null`: as `undefined` instead for an optional single property whose type\n * does not admit `null`, and always as `null` for an array element.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array\n *    types allowed\n * 4. No union types allowed\n *\n * An absent key decodes a required array to `[]`, a nullable one to `null`, and\n * an optional one to `undefined`. A string property keeps the text `null`\n * unless its type admits `null`, and a blank numeric value decodes to\n * `undefined`.\n *\n * Does not validate the decoded value. For validation, use:\n *\n * - {@link assertFormData} — Throws on type mismatch\n * - {@link isFormData} — Returns `null` on type mismatch\n * - {@link validateFormData} — Returns detailed validation errors\n *\n * @template T Target object type\n *\n * @param input FormData instance to decode\n *\n * @returns Decoded object of type `T`\n *\n * @danger You must configure the generic argument `T`\n */\nexport function formData<T extends object>(input: FormData): Resolved<T>;\n\n/** @internal */\nexport function formData(): never {\n  NoTransformConfigurationError(\"http.formData\");\n}\n\n/**\n * Decodes `FormData` into type `T` with assertion.\n *\n * Parses a `FormData` instance with automatic type casting, then validates the\n * result via {@link assert}. Throws {@link TypeGuardError} on mismatch.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array\n *    types allowed\n * 4. No union types allowed\n *\n * Related functions:\n *\n * - {@link formData} — No validation\n * - {@link isFormData} — Returns `null` instead of throwing\n * - {@link validateFormData} — Returns detailed validation errors\n *\n * @template T Target object type\n *\n * @param input FormData instance to decode\n * @param errorFactory Custom error factory receiving\n *   {@link TypeGuardError.IProps}\n *\n * @returns Decoded object of type `T`\n *\n * @throws {TypeGuardError} When decoded value doesn't conform to type `T`\n *\n * @danger You must configure the generic argument `T`\n */\nexport function assertFormData<T extends object>(\n  input: FormData,\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): Resolved<T>;\n\n/** @internal */\nexport function assertFormData(): never {\n  NoTransformConfigurationError(\"http.assertFormData\");\n}\n\n/**\n * Decodes `FormData` into type `T` with type checking.\n *\n * Parses a `FormData` instance with automatic type casting, then validates the\n * result via {@link is}. Returns `null` on type mismatch.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array\n *    types allowed\n * 4. No union types allowed\n *\n * Related functions:\n *\n * - {@link formData} — No validation\n * - {@link assertFormData} — Throws instead of returning `null`\n * - {@link validateFormData} — Returns detailed validation errors\n *\n * @template T Target object type\n *\n * @param input FormData instance to decode\n *\n * @returns Decoded object of type `T`, or `null` if invalid\n *\n * @danger You must configure the generic argument `T`\n */\nexport function isFormData<T extends object>(\n  input: FormData,\n): Resolved<T> | null;\n\n/** @internal */\nexport function isFormData(): never {\n  NoTransformConfigurationError(\"http.isFormData\");\n}\n\n/**\n * Decodes `FormData` into type `T` with validation.\n *\n * Parses a `FormData` instance with automatic type casting, then validates the\n * result via {@link validate}. Returns {@link IValidation.IFailure} with all\n * errors on mismatch, or {@link IValidation.ISuccess} with decoded value.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Only `boolean`, `bigint`, `number`, `string`, `Blob`, `File` or their array\n *    types allowed\n * 4. No union types allowed\n *\n * Related functions:\n *\n * - {@link formData} — No validation\n * - {@link assertFormData} — Throws on first error\n * - {@link isFormData} — Returns `null` instead of error details\n *\n * @template T Target object type\n *\n * @param input FormData instance to decode\n *\n * @returns Validation result containing decoded value or errors\n *\n * @danger You must configure the generic argument `T`\n */\nexport function validateFormData<T extends object>(\n  input: FormData,\n): IValidation<Resolved<T>>;\n\n/** @internal */\nexport function validateFormData(): never {\n  NoTransformConfigurationError(\"http.validateFormData\");\n}\n\n/* -----------------------------------------------------------\n    QUERY\n----------------------------------------------------------- */\n/**\n * Decodes URL query string into type `T`.\n *\n * Parses a query string or `URLSearchParams` instance with automatic type\n * casting. Properties typed as `boolean`, `bigint`, or `number` are cast to\n * expected types during decoding.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Only `boolean`, `bigint`, `number`, `string` or their array types allowed\n * 4. No union types allowed\n *\n * An absent key decodes a required array to `[]`, a nullable one to `null`, and\n * an optional one to `undefined`, since a query string has no other spelling\n * for an empty array. An absent required non-array property throws\n * `Error(\"missing <key>\")`. A string property keeps the text `null` unless its\n * type admits `null`, and a blank numeric value decodes to `undefined`.\n *\n * Does not validate the decoded value. For validation, use:\n *\n * - {@link assertQuery} — Throws on type mismatch\n * - {@link isQuery} — Returns `null` on type mismatch\n * - {@link validateQuery} — Returns detailed validation errors\n *\n * @template T Target object type\n *\n * @param input Query string or URLSearchParams instance\n *\n * @returns Decoded object of type `T`\n *\n * @danger You must configure the generic argument `T`\n */\nexport function query<T extends object>(\n  input: string | IReadableURLSearchParams,\n): Resolved<T>;\n\n/** @internal */\nexport function query(): never {\n  NoTransformConfigurationError(\"http.query\");\n}\n\n/**\n * Decodes URL query string into type `T` with assertion.\n *\n * Parses a query string or `URLSearchParams` instance with automatic type\n * casting, then validates the result via {@link assert}. Throws\n * {@link TypeGuardError} on mismatch.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Only `boolean`, `bigint`, `number`, `string` or their array types allowed\n * 4. No union types allowed\n *\n * Related functions:\n *\n * - {@link query} — No validation\n * - {@link isQuery} — Returns `null` instead of throwing\n * - {@link validateQuery} — Returns detailed validation errors\n *\n * @template T Target object type\n *\n * @param input Query string or URLSearchParams instance\n * @param errorFactory Custom error factory receiving\n *   {@link TypeGuardError.IProps}\n *\n * @returns Decoded object of type `T`\n *\n * @throws {TypeGuardError} When decoded value doesn't conform to type `T`\n *\n * @danger You must configure the generic argument `T`\n */\nexport function assertQuery<T extends object>(\n  input: string | IReadableURLSearchParams,\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): Resolved<T>;\n\n/** @internal */\nexport function assertQuery(): never {\n  NoTransformConfigurationError(\"http.assertQuery\");\n}\n\n/**\n * Decodes URL query string into type `T` with type checking.\n *\n * Parses a query string or `URLSearchParams` instance with automatic type\n * casting, then validates the result via {@link is}. Returns `null` on type\n * mismatch.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Only `boolean`, `bigint`, `number`, `string` or their array types allowed\n * 4. No union types allowed\n *\n * Related functions:\n *\n * - {@link query} — No validation\n * - {@link assertQuery} — Throws instead of returning `null`\n * - {@link validateQuery} — Returns detailed validation errors\n *\n * @template T Target object type\n *\n * @param input Query string or URLSearchParams instance\n *\n * @returns Decoded object of type `T`, or `null` if invalid\n *\n * @danger You must configure the generic argument `T`\n */\nexport function isQuery<T extends object>(\n  input: string | IReadableURLSearchParams,\n): Resolved<T> | null;\n\n/** @internal */\nexport function isQuery(): never {\n  NoTransformConfigurationError(\"http.isQuery\");\n}\n\n/**\n * Decodes URL query string into type `T` with validation.\n *\n * Parses a query string or `URLSearchParams` instance with automatic type\n * casting, then validates the result via {@link validate}. Returns\n * {@link IValidation.IFailure} with all errors on mismatch, or\n * {@link IValidation.ISuccess} with decoded value.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Only `boolean`, `bigint`, `number`, `string` or their array types allowed\n * 4. No union types allowed\n *\n * Related functions:\n *\n * - {@link query} — No validation\n * - {@link assertQuery} — Throws on first error\n * - {@link isQuery} — Returns `null` instead of error details\n *\n * @template T Target object type\n *\n * @param input Query string or URLSearchParams instance\n *\n * @returns Validation result containing decoded value or errors\n *\n * @danger You must configure the generic argument `T`\n */\nexport function validateQuery<T extends object>(\n  input: string | IReadableURLSearchParams,\n): IValidation<Resolved<T>>;\n\n/** @internal */\nexport function validateQuery(): never {\n  NoTransformConfigurationError(\"http.validateQuery\");\n}\n\n/* -----------------------------------------------------------\n    HEADERS\n----------------------------------------------------------- */\n/**\n * Decodes HTTP headers into type `T`.\n *\n * Parses HTTP headers object with automatic type casting. Properties typed as\n * `boolean`, `bigint`, or `number` are cast to expected types during decoding.\n * Compatible with Express and Fastify request headers.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Property keys are read by their lowercase name; two keys that differ only by\n *    case are not allowed\n * 4. Property values cannot be `null` (but `undefined` is allowed)\n * 5. Only `boolean`, `bigint`, `number`, `string` or their array types allowed\n * 6. No union types allowed\n * 7. Property `set-cookie` must be array type\n * 8. These properties cannot be array type: `age`, `authorization`,\n *    `content-length`, `content-type`, `etag`, `expires`, `from`, `host`,\n *    `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`,\n *    `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`,\n *    `user-agent`\n *\n * An absent optional array header, or one given as an empty array, is omitted,\n * and an absent required one decodes to `[]`. `set-cookie` values are never\n * split. A blank numeric header decodes to `undefined`.\n *\n * Does not validate the decoded value. For validation, use:\n *\n * - {@link assertHeaders} — Throws on type mismatch\n * - {@link isHeaders} — Returns `null` on type mismatch\n * - {@link validateHeaders} — Returns detailed validation errors\n *\n * @template T Target object type\n *\n * @param input Headers object from HTTP request\n *\n * @returns Decoded object of type `T`\n *\n * @danger You must configure the generic argument `T`\n */\nexport function headers<T extends object>(\n  input: Record<string, string | string[] | undefined>,\n): Resolved<T>;\n\n/** @internal */\nexport function headers(): never {\n  NoTransformConfigurationError(\"http.headers\");\n}\n\n/**\n * Decodes HTTP headers into type `T` with assertion.\n *\n * Parses HTTP headers object with automatic type casting, then validates the\n * result via {@link assert}. Throws {@link TypeGuardError} on mismatch.\n * Compatible with Express and Fastify request headers.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Property keys are read by their lowercase name; two keys that differ only by\n *    case are not allowed\n * 4. Property values cannot be `null` (but `undefined` is allowed)\n * 5. Only `boolean`, `bigint`, `number`, `string` or their array types allowed\n * 6. No union types allowed\n * 7. Property `set-cookie` must be array type\n * 8. These properties cannot be array type: `age`, `authorization`,\n *    `content-length`, `content-type`, `etag`, `expires`, `from`, `host`,\n *    `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`,\n *    `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`,\n *    `user-agent`\n *\n * Related functions:\n *\n * - {@link headers} — No validation\n * - {@link isHeaders} — Returns `null` instead of throwing\n * - {@link validateHeaders} — Returns detailed validation errors\n *\n * @template T Target object type\n *\n * @param input Headers object from HTTP request\n * @param errorFactory Custom error factory receiving\n *   {@link TypeGuardError.IProps}\n *\n * @returns Decoded object of type `T`\n *\n * @throws {TypeGuardError} When decoded value doesn't conform to type `T`\n *\n * @danger You must configure the generic argument `T`\n */\nexport function assertHeaders<T extends object>(\n  input: Record<string, string | string[] | undefined>,\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): Resolved<T>;\n\n/** @internal */\nexport function assertHeaders(): never {\n  NoTransformConfigurationError(\"http.assertHeaders\");\n}\n\n/**\n * Decodes HTTP headers into type `T` with type checking.\n *\n * Parses HTTP headers object with automatic type casting, then validates the\n * result via {@link is}. Returns `null` on type mismatch. Compatible with\n * Express and Fastify request headers.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Property keys are read by their lowercase name; two keys that differ only by\n *    case are not allowed\n * 4. Property values cannot be `null` (but `undefined` is allowed)\n * 5. Only `boolean`, `bigint`, `number`, `string` or their array types allowed\n * 6. No union types allowed\n * 7. Property `set-cookie` must be array type\n * 8. These properties cannot be array type: `age`, `authorization`,\n *    `content-length`, `content-type`, `etag`, `expires`, `from`, `host`,\n *    `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`,\n *    `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`,\n *    `user-agent`\n *\n * Related functions:\n *\n * - {@link headers} — No validation\n * - {@link assertHeaders} — Throws instead of returning `null`\n * - {@link validateHeaders} — Returns detailed validation errors\n *\n * @template T Target object type\n *\n * @param input Headers object from HTTP request\n *\n * @returns Decoded object of type `T`, or `null` if invalid\n *\n * @danger You must configure the generic argument `T`\n */\nexport function isHeaders<T extends object>(\n  input: Record<string, string | string[] | undefined>,\n): Resolved<T> | null;\n\n/** @internal */\nexport function isHeaders(): never {\n  NoTransformConfigurationError(\"http.isHeaders\");\n}\n\n/**\n * Decodes HTTP headers into type `T` with validation.\n *\n * Parses HTTP headers object with automatic type casting, then validates the\n * result via {@link validate}. Returns {@link IValidation.IFailure} with all\n * errors on mismatch, or {@link IValidation.ISuccess} with decoded value.\n * Compatible with Express and Fastify request headers.\n *\n * Type `T` constraints:\n *\n * 1. Must be an object type\n * 2. No dynamic properties allowed\n * 3. Property keys are read by their lowercase name; two keys that differ only by\n *    case are not allowed\n * 4. Property values cannot be `null` (but `undefined` is allowed)\n * 5. Only `boolean`, `bigint`, `number`, `string` or their array types allowed\n * 6. No union types allowed\n * 7. Property `set-cookie` must be array type\n * 8. These properties cannot be array type: `age`, `authorization`,\n *    `content-length`, `content-type`, `etag`, `expires`, `from`, `host`,\n *    `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`,\n *    `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`,\n *    `user-agent`\n *\n * Related functions:\n *\n * - {@link headers} — No validation\n * - {@link assertHeaders} — Throws on first error\n * - {@link isHeaders} — Returns `null` instead of error details\n *\n * @template T Target object type\n *\n * @param input Headers object from HTTP request\n *\n * @returns Validation result containing decoded value or errors\n *\n * @danger You must configure the generic argument `T`\n */\nexport function validateHeaders<T extends object>(\n  input: Record<string, string | string[] | undefined>,\n): IValidation<Resolved<T>>;\n\n/** @internal */\nexport function validateHeaders(): never {\n  NoTransformConfigurationError(\"http.validateHeaders\");\n}\n\n/* -----------------------------------------------------------\n    PARAMETER\n----------------------------------------------------------- */\n/**\n * Decodes URL path parameter into type `T`.\n *\n * Parses a path parameter string with automatic type casting. When type `T` is\n * `boolean`, `bigint`, or `number`, casts the string value to the expected\n * type. Also performs type assertion via {@link assert}, throwing\n * {@link TypeGuardError} on mismatch.\n *\n * A blank value is not a number, and a string parameter keeps the text `null`\n * unless `T` admits `null`.\n *\n * @template T Target atomic type (`boolean`, `bigint`, `number`, or `string`),\n *   optionally with `null`\n *\n * @param input Path parameter string\n *\n * @returns Decoded value of type `T`\n *\n * @throws {TypeGuardError} When decoded value doesn't conform to type `T`\n *\n * @danger You must configure the generic argument `T`\n */\nexport function parameter<T extends Atomic.Type | null>(\n  input: string,\n): Resolved<T>;\n\n/** @internal */\nexport function parameter(): never {\n  NoTransformConfigurationError(\"http.parameter\");\n}\n\n/* -----------------------------------------------------------\n    FACTORY FUNCTIONS\n----------------------------------------------------------- */\n/**\n * Creates reusable {@link formData} function.\n *\n * @template T Target object type\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createFormData(): never;\n\n/**\n * Creates reusable {@link formData} function.\n *\n * @template T Target object type\n *\n * @returns Reusable decoder function\n */\nexport function createFormData<T extends object>(): (\n  input: FormData,\n) => Resolved<T>;\n\n/** @internal */\nexport function createFormData<T>(): (input: FormData) => Resolved<T> {\n  NoTransformConfigurationError(\"http.createFormData\");\n}\n\n/**\n * Creates reusable {@link assertFormData} function.\n *\n * @template T Target object type\n *\n * @param errorFactory Custom error factory receiving\n *   {@link TypeGuardError.IProps}\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createAssertFormData(\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): never;\n\n/**\n * Creates reusable {@link assertFormData} function.\n *\n * @template T Target object type\n *\n * @param errorFactory Custom error factory receiving\n *   {@link TypeGuardError.IProps}\n *\n * @returns Reusable decoder function\n */\nexport function createAssertFormData<T extends object>(\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): (\n  input: FormData,\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n) => Resolved<T>;\n\n/** @internal */\nexport function createAssertFormData<T>(): (\n  input: FormData,\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n) => Resolved<T> {\n  NoTransformConfigurationError(\"http.createAssertFormData\");\n}\n\n/**\n * Creates reusable {@link isFormData} function.\n *\n * @template T Target object type\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createIsFormData(): never;\n\n/**\n * Creates reusable {@link isFormData} function.\n *\n * @template T Target object type\n *\n * @returns Reusable decoder function\n */\nexport function createIsFormData<T extends object>(): (\n  input: FormData,\n) => Resolved<T> | null;\n\n/** @internal */\nexport function createIsFormData<T>(): (input: FormData) => Resolved<T> | null {\n  NoTransformConfigurationError(\"http.createIsFormData\");\n}\n\n/**\n * Creates reusable {@link validateFormData} function.\n *\n * @template T Target object type\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createValidateFormData(): never;\n\n/**\n * Creates reusable {@link validateFormData} function.\n *\n * @template T Target object type\n *\n * @returns Reusable decoder function\n */\nexport function createValidateFormData<T extends object>(): (\n  input: FormData,\n) => IValidation<Resolved<T>>;\n\n/** @internal */\nexport function createValidateFormData<T>(): (\n  input: FormData,\n) => IValidation<Resolved<T>> {\n  NoTransformConfigurationError(\"http.createValidateFormData\");\n}\n\n/**\n * Creates reusable {@link query} function.\n *\n * @template T Target object type\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createQuery(): never;\n\n/**\n * Creates reusable {@link query} function.\n *\n * @template T Target object type\n *\n * @returns Reusable decoder function\n */\nexport function createQuery<T extends object>(): (\n  input: string | IReadableURLSearchParams,\n) => Resolved<T>;\n\n/** @internal */\nexport function createQuery<T>(): (\n  input: string | IReadableURLSearchParams,\n) => Resolved<T> {\n  NoTransformConfigurationError(\"http.createQuery\");\n}\n\n/**\n * Creates reusable {@link assertQuery} function.\n *\n * @template T Target object type\n *\n * @param errorFactory Custom error factory receiving\n *   {@link TypeGuardError.IProps}\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createAssertQuery(\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): never;\n\n/**\n * Creates reusable {@link assertQuery} function.\n *\n * @template T Target object type\n *\n * @param errorFactory Custom error factory receiving\n *   {@link TypeGuardError.IProps}\n *\n * @returns Reusable decoder function\n */\nexport function createAssertQuery<T extends object>(\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): (\n  input: string | IReadableURLSearchParams,\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n) => Resolved<T>;\n\n/** @internal */\nexport function createAssertQuery<T>(): (\n  input: string | IReadableURLSearchParams,\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n) => Resolved<T> {\n  NoTransformConfigurationError(\"http.createAssertQuery\");\n}\n\n/**\n * Creates reusable {@link isQuery} function.\n *\n * @template T Target object type\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createIsQuery(): never;\n\n/**\n * Creates reusable {@link isQuery} function.\n *\n * @template T Target object type\n *\n * @returns Reusable decoder function\n */\nexport function createIsQuery<T extends object>(): (\n  input: string | IReadableURLSearchParams,\n) => Resolved<T> | null;\n\n/** @internal */\nexport function createIsQuery<T>(): (\n  input: string | IReadableURLSearchParams,\n) => Resolved<T> | null {\n  NoTransformConfigurationError(\"http.createIsQuery\");\n}\n\n/**\n * Creates reusable {@link validateQuery} function.\n *\n * @template T Target object type\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createValidateQuery(): never;\n\n/**\n * Creates reusable {@link validateQuery} function.\n *\n * @template T Target object type\n *\n * @returns Reusable decoder function\n */\nexport function createValidateQuery<T extends object>(): (\n  input: string | IReadableURLSearchParams,\n) => IValidation<Resolved<T>>;\n\n/** @internal */\nexport function createValidateQuery<T>(): (\n  input: string | IReadableURLSearchParams,\n) => IValidation<Resolved<T>> {\n  NoTransformConfigurationError(\"http.createValidateQuery\");\n}\n\n/**\n * Creates reusable {@link headers} function.\n *\n * @template T Target object type\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createHeaders(): never;\n\n/**\n * Creates reusable {@link headers} function.\n *\n * @template T Target object type\n *\n * @returns Reusable decoder function\n */\nexport function createHeaders<T extends object>(): (\n  input: Record<string, string | string[] | undefined>,\n) => Resolved<T>;\n\n/** @internal */\nexport function createHeaders<T>(): (\n  input: Record<string, string | string[] | undefined>,\n) => Resolved<T> {\n  NoTransformConfigurationError(\"http.createHeaders\");\n}\n\n/**\n * Creates reusable {@link assertHeaders} function.\n *\n * @template T Target object type\n *\n * @param errorFactory Custom error factory receiving\n *   {@link TypeGuardError.IProps}\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createAssertHeaders(\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): never;\n\n/**\n * Creates reusable {@link assertHeaders} function.\n *\n * @template T Target object type\n *\n * @param errorFactory Custom error factory receiving\n *   {@link TypeGuardError.IProps}\n *\n * @returns Reusable decoder function\n */\nexport function createAssertHeaders<T extends object>(\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n): (\n  input: Record<string, string | string[] | undefined>,\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n) => Resolved<T>;\n\n/** @internal */\nexport function createAssertHeaders<T>(): (\n  input: Record<string, string | string[] | undefined>,\n  errorFactory?: undefined | ((props: TypeGuardError.IProps) => Error),\n) => Resolved<T> {\n  NoTransformConfigurationError(\"http.createAssertHeaders\");\n}\n\n/**\n * Creates reusable {@link isHeaders} function.\n *\n * @template T Target object type\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createIsHeaders(): never;\n\n/**\n * Creates reusable {@link isHeaders} function.\n *\n * @template T Target object type\n *\n * @returns Reusable decoder function\n */\nexport function createIsHeaders<T extends object>(): (\n  input: Record<string, string | string[] | undefined>,\n) => Resolved<T> | null;\n\n/** @internal */\nexport function createIsHeaders<T>(): (\n  input: Record<string, string | string[] | undefined>,\n) => Resolved<T> | null {\n  NoTransformConfigurationError(\"http.createIsHeaders\");\n}\n\n/**\n * Creates reusable {@link validateHeaders} function.\n *\n * @template T Target object type\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createValidateHeaders(): never;\n\n/**\n * Creates reusable {@link validateHeaders} function.\n *\n * @template T Target object type\n *\n * @returns Reusable decoder function\n */\nexport function createValidateHeaders<T extends object>(): (\n  input: Record<string, string | string[] | undefined>,\n) => IValidation<Resolved<T>>;\n\n/** @internal */\nexport function createValidateHeaders<T>(): (\n  input: Record<string, string | string[] | undefined>,\n) => IValidation<Resolved<T>> {\n  NoTransformConfigurationError(\"http.createValidateHeaders\");\n}\n\n/**\n * Creates reusable {@link parameter} function.\n *\n * @template T Target atomic type\n *\n * @danger You must configure the generic argument `T`\n */\nexport function createParameter(): never;\n\n/**\n * Creates reusable {@link parameter} function.\n *\n * @template T Target atomic type\n *\n * @returns Reusable decoder function\n */\nexport function createParameter<T extends Atomic.Type | null>(): (\n  input: string,\n) => Resolved<T>;\n\n/** @internal */\nexport function createParameter<T extends Atomic.Type | null>(): (\n  input: string,\n) => Resolved<T> {\n  NoTransformConfigurationError(\"http.createParameter\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,SAAgB,WAAkB;CAChC,8BAA8B,eAAe;AAC/C;;AAwCA,SAAgB,iBAAwB;CACtC,8BAA8B,qBAAqB;AACrD;;AAmCA,SAAgB,aAAoB;CAClC,8BAA8B,iBAAiB;AACjD;;AAoCA,SAAgB,mBAA0B;CACxC,8BAA8B,uBAAuB;AACvD;;AA4CA,SAAgB,QAAe;CAC7B,8BAA8B,YAAY;AAC5C;;AAwCA,SAAgB,cAAqB;CACnC,8BAA8B,kBAAkB;AAClD;;AAmCA,SAAgB,UAAiB;CAC/B,8BAA8B,cAAc;AAC9C;;AAoCA,SAAgB,gBAAuB;CACrC,8BAA8B,oBAAoB;AACpD;;AAmDA,SAAgB,UAAiB;CAC/B,8BAA8B,cAAc;AAC9C;;AAiDA,SAAgB,gBAAuB;CACrC,8BAA8B,oBAAoB;AACpD;;AA4CA,SAAgB,YAAmB;CACjC,8BAA8B,gBAAgB;AAChD;;AA6CA,SAAgB,kBAAyB;CACvC,8BAA8B,sBAAsB;AACtD;;AAgCA,SAAgB,YAAmB;CACjC,8BAA8B,gBAAgB;AAChD;;AA0BA,SAAgB,iBAAsD;CACpE,8BAA8B,qBAAqB;AACrD;;AAkCA,SAAgB,uBAGC;CACf,8BAA8B,2BAA2B;AAC3D;;AAuBA,SAAgB,mBAA+D;CAC7E,8BAA8B,uBAAuB;AACvD;;AAuBA,SAAgB,yBAEc;CAC5B,8BAA8B,6BAA6B;AAC7D;;AAuBA,SAAgB,cAEC;CACf,8BAA8B,kBAAkB;AAClD;;AAkCA,SAAgB,oBAGC;CACf,8BAA8B,wBAAwB;AACxD;;AAuBA,SAAgB,gBAEQ;CACtB,8BAA8B,oBAAoB;AACpD;;AAuBA,SAAgB,sBAEc;CAC5B,8BAA8B,0BAA0B;AAC1D;;AAuBA,SAAgB,gBAEC;CACf,8BAA8B,oBAAoB;AACpD;;AAkCA,SAAgB,sBAGC;CACf,8BAA8B,0BAA0B;AAC1D;;AAuBA,SAAgB,kBAEQ;CACtB,8BAA8B,sBAAsB;AACtD;;AAuBA,SAAgB,wBAEc;CAC5B,8BAA8B,4BAA4B;AAC5D;;AAuBA,SAAgB,kBAEC;CACf,8BAA8B,sBAAsB;AACtD"}