@utilix-tech/sdk 0.64.0 → 0.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -5184,6 +5184,7 @@ function getEmojiCategories() {
5184
5184
  // src/tools/data.ts
5185
5185
  var data_exports = {};
5186
5186
  __export(data_exports, {
5187
+ alignMarkdownTables: () => alignMarkdownTables,
5187
5188
  analyzeCaptionSpeed: () => analyzeCaptionSpeed,
5188
5189
  calculateMarkdownTaskListProgress: () => calculateMarkdownTaskListProgress,
5189
5190
  convertSubtitles: () => convertSubtitles,
@@ -6986,6 +6987,141 @@ function calculateMarkdownTaskListProgress(markdown) {
6986
6987
  });
6987
6988
  return { totalItems, completedItems, percentComplete, sections, items };
6988
6989
  }
6990
+ function _splitMarkdownTableRow(line) {
6991
+ const raw = [];
6992
+ let current = "";
6993
+ for (let i = 0; i < line.length; i++) {
6994
+ const ch = line[i];
6995
+ if (ch === "\\" && line[i + 1] === "|") {
6996
+ current += "\\|";
6997
+ i++;
6998
+ continue;
6999
+ }
7000
+ if (ch === "|") {
7001
+ raw.push(current);
7002
+ current = "";
7003
+ continue;
7004
+ }
7005
+ current += ch;
7006
+ }
7007
+ raw.push(current);
7008
+ const cells = raw.map((c) => c.trim());
7009
+ if (cells.length > 1 && cells[0] === "") cells.shift();
7010
+ if (cells.length > 1 && cells[cells.length - 1] === "") cells.pop();
7011
+ return cells;
7012
+ }
7013
+ function _isMarkdownTableDelimiterRow(line) {
7014
+ const trimmed = line.trim();
7015
+ if (trimmed === "" || !trimmed.includes("-")) return false;
7016
+ const cells = _splitMarkdownTableRow(trimmed);
7017
+ if (cells.length === 0) return false;
7018
+ return cells.every((c) => /^:?-+:?$/.test(c));
7019
+ }
7020
+ function _markdownTableCellAlignment(delimCell) {
7021
+ const left = delimCell.startsWith(":");
7022
+ const right = delimCell.endsWith(":");
7023
+ if (left && right) return "center";
7024
+ if (right) return "right";
7025
+ if (left) return "left";
7026
+ return "none";
7027
+ }
7028
+ function _padMarkdownTableCell(text, width, alignment) {
7029
+ const len = [...text].length;
7030
+ const diff = Math.max(0, width - len);
7031
+ if (alignment === "right") return " ".repeat(diff) + text;
7032
+ if (alignment === "center") {
7033
+ const left = Math.floor(diff / 2);
7034
+ const right = diff - left;
7035
+ return " ".repeat(left) + text + " ".repeat(right);
7036
+ }
7037
+ return text + " ".repeat(diff);
7038
+ }
7039
+ function _markdownTableDelimiterCell(width, alignment) {
7040
+ switch (alignment) {
7041
+ case "left":
7042
+ return ":" + "-".repeat(Math.max(1, width - 1));
7043
+ case "right":
7044
+ return "-".repeat(Math.max(1, width - 1)) + ":";
7045
+ case "center":
7046
+ return ":" + "-".repeat(Math.max(1, width - 2)) + ":";
7047
+ default:
7048
+ return "-".repeat(width);
7049
+ }
7050
+ }
7051
+ function alignMarkdownTables(markdown) {
7052
+ if (typeof markdown !== "string") return { error: "markdown must be a string" };
7053
+ const lines = markdown.replace(/\r\n/g, "\n").split("\n");
7054
+ const outputLines = [...lines];
7055
+ const tables = [];
7056
+ const warnings = [];
7057
+ let inFence = false;
7058
+ let fenceMarker = "";
7059
+ let i = 0;
7060
+ while (i < lines.length) {
7061
+ const line = lines[i];
7062
+ const fenceMatch = line.match(/^\s*(```+|~~~+)/);
7063
+ if (fenceMatch) {
7064
+ if (!inFence) {
7065
+ inFence = true;
7066
+ fenceMarker = fenceMatch[1][0];
7067
+ } else if (fenceMatch[1][0] === fenceMarker) {
7068
+ inFence = false;
7069
+ }
7070
+ i++;
7071
+ continue;
7072
+ }
7073
+ if (inFence) {
7074
+ i++;
7075
+ continue;
7076
+ }
7077
+ const nextLine = lines[i + 1];
7078
+ if (line.includes("|") && nextLine !== void 0 && _isMarkdownTableDelimiterRow(nextLine)) {
7079
+ const headerCells = _splitMarkdownTableRow(line);
7080
+ const delimCells = _splitMarkdownTableRow(nextLine);
7081
+ if (headerCells.length > 0 && headerCells.length === delimCells.length) {
7082
+ const columnCount = headerCells.length;
7083
+ const alignments = delimCells.map(_markdownTableCellAlignment);
7084
+ let j = i + 2;
7085
+ const bodyRows = [];
7086
+ while (j < lines.length && lines[j].trim() !== "" && lines[j].includes("|")) {
7087
+ bodyRows.push(_splitMarkdownTableRow(lines[j]));
7088
+ j++;
7089
+ }
7090
+ const normalizedBody = [];
7091
+ for (const row of bodyRows) {
7092
+ if (row.length !== columnCount) {
7093
+ warnings.push(`Table at line ${i + 1}: a row has ${row.length} cell(s) but the header has ${columnCount}; it was padded/truncated to match.`);
7094
+ }
7095
+ normalizedBody.push(Array.from({ length: columnCount }, (_, c) => row[c] ?? ""));
7096
+ }
7097
+ const allRows = [headerCells, ...normalizedBody];
7098
+ const widths = Array.from(
7099
+ { length: columnCount },
7100
+ (_, c) => Math.max(3, ...allRows.map((r) => [...r[c] ?? ""].length))
7101
+ );
7102
+ const formattedHeader = "| " + headerCells.map((c, idx) => _padMarkdownTableCell(c, widths[idx], alignments[idx])).join(" | ") + " |";
7103
+ const formattedDelim = "| " + widths.map((w, idx) => _markdownTableDelimiterCell(w, alignments[idx])).join(" | ") + " |";
7104
+ const formattedBody = normalizedBody.map((row) => "| " + row.map((c, idx) => _padMarkdownTableCell(c, widths[idx], alignments[idx])).join(" | ") + " |");
7105
+ const formattedLines = [formattedHeader, formattedDelim, ...formattedBody];
7106
+ for (let k = 0; k < formattedLines.length; k++) {
7107
+ outputLines[i + k] = formattedLines[k];
7108
+ }
7109
+ tables.push({
7110
+ startLine: i + 1,
7111
+ endLine: i + formattedLines.length,
7112
+ columnCount,
7113
+ rowCount: normalizedBody.length,
7114
+ alignments
7115
+ });
7116
+ i = j;
7117
+ continue;
7118
+ }
7119
+ }
7120
+ i++;
7121
+ }
7122
+ if (tables.length === 0) return { error: "No Markdown tables found" };
7123
+ return { output: outputLines.join("\n"), tables, warnings };
7124
+ }
6989
7125
 
6990
7126
  // src/tools/generators.ts
6991
7127
  var generators_exports = {};
@@ -10921,6 +11057,7 @@ __export(network_exports, {
10921
11057
  buildContentDisposition: () => buildContentDisposition,
10922
11058
  buildDnsQueryUrl: () => buildDnsQueryUrl,
10923
11059
  buildGeoUrl: () => buildGeoUrl,
11060
+ buildHsts: () => buildHsts,
10924
11061
  buildLinkHeader: () => buildLinkHeader,
10925
11062
  buildMapUrl: () => buildMapUrl,
10926
11063
  buildPermissionsPolicy: () => buildPermissionsPolicy,
@@ -10956,6 +11093,7 @@ __export(network_exports, {
10956
11093
  parseDnsResponse: () => parseDnsResponse,
10957
11094
  parseGeoResponse: () => parseGeoResponse,
10958
11095
  parseHar: () => parseHar,
11096
+ parseHsts: () => parseHsts,
10959
11097
  parseIpv6Address: () => parseIpv6Address,
10960
11098
  parseMultipartFormData: () => parseMultipartFormData,
10961
11099
  parsePermissionsPolicy: () => parsePermissionsPolicy,
@@ -14066,6 +14204,87 @@ function parseMultipartFormData(body, boundary) {
14066
14204
  }
14067
14205
  return { boundary, parts };
14068
14206
  }
14207
+ var HSTS_ONE_YEAR_SECONDS = 31536e3;
14208
+ function _humanizeHstsMaxAge(seconds) {
14209
+ if (seconds === 0) return "0 seconds (clears HSTS)";
14210
+ if (seconds % HSTS_ONE_YEAR_SECONDS === 0) {
14211
+ const years = seconds / HSTS_ONE_YEAR_SECONDS;
14212
+ return `${years} year${years === 1 ? "" : "s"}`;
14213
+ }
14214
+ if (seconds % 86400 === 0) {
14215
+ const days = seconds / 86400;
14216
+ return `${days} day${days === 1 ? "" : "s"}`;
14217
+ }
14218
+ if (seconds % 3600 === 0) {
14219
+ const hours = seconds / 3600;
14220
+ return `${hours} hour${hours === 1 ? "" : "s"}`;
14221
+ }
14222
+ return `${seconds} second${seconds === 1 ? "" : "s"}`;
14223
+ }
14224
+ function buildHsts(options) {
14225
+ if (!options || typeof options !== "object") return { error: "maxAge is required" };
14226
+ const { maxAge, includeSubDomains = false, preload = false } = options;
14227
+ if (typeof maxAge !== "number" || !Number.isFinite(maxAge) || !Number.isInteger(maxAge) || maxAge < 0) {
14228
+ return { error: "maxAge must be a non-negative integer number of seconds" };
14229
+ }
14230
+ const warnings = [];
14231
+ const preloadEligible = maxAge >= HSTS_ONE_YEAR_SECONDS && includeSubDomains && preload;
14232
+ if (preload && !includeSubDomains) {
14233
+ warnings.push("Browser HSTS preload lists require includeSubDomains whenever preload is set; this header will not qualify for preloading as configured.");
14234
+ }
14235
+ if (preload && maxAge < HSTS_ONE_YEAR_SECONDS) {
14236
+ warnings.push(`Browser HSTS preload lists require max-age of at least ${HSTS_ONE_YEAR_SECONDS} (1 year); ${maxAge} is too low to qualify.`);
14237
+ }
14238
+ if (maxAge === 0) {
14239
+ warnings.push("max-age=0 tells the browser to forget this host supports HSTS immediately, this clears HSTS rather than enabling it.");
14240
+ } else if (maxAge < 86400) {
14241
+ warnings.push("A max-age under a day gives very little protection; most real deployments use at least 15552000 (180 days) once confident HTTPS is fully working.");
14242
+ }
14243
+ const parts = [`max-age=${maxAge}`];
14244
+ if (includeSubDomains) parts.push("includeSubDomains");
14245
+ if (preload) parts.push("preload");
14246
+ const header = parts.join("; ");
14247
+ return {
14248
+ header,
14249
+ headerName: "Strict-Transport-Security",
14250
+ snippet: `Strict-Transport-Security: ${header}`,
14251
+ maxAge,
14252
+ maxAgeHuman: _humanizeHstsMaxAge(maxAge),
14253
+ includeSubDomains,
14254
+ preload,
14255
+ preloadEligible,
14256
+ warnings
14257
+ };
14258
+ }
14259
+ function parseHsts(raw) {
14260
+ if (!raw || raw.trim() === "") return { error: "Input is empty" };
14261
+ const withoutLabel = raw.trim().replace(/^strict-transport-security:\s*/i, "");
14262
+ const tokens = withoutLabel.split(";").map((t) => t.trim()).filter((t) => t !== "");
14263
+ if (tokens.length === 0) return { error: "No directives found" };
14264
+ let maxAge = null;
14265
+ let includeSubDomains = false;
14266
+ let preload = false;
14267
+ for (const token of tokens) {
14268
+ const eq = token.indexOf("=");
14269
+ const name = (eq === -1 ? token : token.slice(0, eq)).trim().toLowerCase();
14270
+ if (name === "max-age") {
14271
+ const rawValue = eq === -1 ? "" : token.slice(eq + 1).trim();
14272
+ const n = Number(rawValue);
14273
+ if (rawValue === "" || !Number.isFinite(n) || !Number.isInteger(n) || n < 0) {
14274
+ return { error: `max-age value "${rawValue}" is not a valid non-negative integer` };
14275
+ }
14276
+ maxAge = n;
14277
+ } else if (name === "includesubdomains") {
14278
+ includeSubDomains = true;
14279
+ } else if (name === "preload") {
14280
+ preload = true;
14281
+ } else {
14282
+ return { error: `Unrecognized directive "${token}"` };
14283
+ }
14284
+ }
14285
+ if (maxAge === null) return { error: "max-age directive is required" };
14286
+ return buildHsts({ maxAge, includeSubDomains, preload });
14287
+ }
14069
14288
 
14070
14289
  // src/tools/api.ts
14071
14290
  var api_exports = {};
package/dist/index.d.cts CHANGED
@@ -2,11 +2,11 @@ export { j as json } from './json-CaiYsGDQ.cjs';
2
2
  export { e as encoding } from './encoding-Dk3wpmb3.cjs';
3
3
  export { h as hashing } from './hashing-CJjlvqS_.cjs';
4
4
  export { t as text } from './text-DWUcY8H1.cjs';
5
- export { d as data } from './data-vxXrBlWh.cjs';
5
+ export { d as data } from './data-26TALa9U.cjs';
6
6
  export { g as generators } from './generators-DAXXrMvG.cjs';
7
7
  export { t as time } from './time-KqJjdqII.cjs';
8
8
  export { u as units } from './units-DPefgzmH.cjs';
9
- export { n as network } from './network-DZTfMAk0.cjs';
9
+ export { n as network } from './network-DT-OMHWV.cjs';
10
10
  export { a as api } from './api-DmTNE4c1.cjs';
11
11
  export { c as code } from './code-CKI2Z_NM.cjs';
12
12
  export { c as color } from './color-tPwZCr9H.cjs';
package/dist/index.d.ts CHANGED
@@ -2,11 +2,11 @@ export { j as json } from './json-CaiYsGDQ.js';
2
2
  export { e as encoding } from './encoding-Dk3wpmb3.js';
3
3
  export { h as hashing } from './hashing-CJjlvqS_.js';
4
4
  export { t as text } from './text-DWUcY8H1.js';
5
- export { d as data } from './data-vxXrBlWh.js';
5
+ export { d as data } from './data-26TALa9U.js';
6
6
  export { g as generators } from './generators-DAXXrMvG.js';
7
7
  export { t as time } from './time-KqJjdqII.js';
8
8
  export { u as units } from './units-DPefgzmH.js';
9
- export { n as network } from './network-DZTfMAk0.js';
9
+ export { n as network } from './network-DT-OMHWV.js';
10
10
  export { a as api } from './api-DmTNE4c1.js';
11
11
  export { c as code } from './code-CKI2Z_NM.js';
12
12
  export { c as color } from './color-tPwZCr9H.js';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { media_exports as media } from './chunk-226EH3ZI.js';
2
2
  export { units_exports as units } from './chunk-4HNHEOJL.js';
3
- export { network_exports as network } from './chunk-IANBS5Y3.js';
3
+ export { network_exports as network } from './chunk-KEZLVYR3.js';
4
4
  export { api_exports as api } from './chunk-52ZDKSIX.js';
5
5
  export { code_exports as code } from './chunk-JPFHEZ4P.js';
6
6
  export { color_exports as color } from './chunk-BPVAB4P2.js';
@@ -11,7 +11,7 @@ export { json_exports as json } from './chunk-34C6GXCC.js';
11
11
  export { encoding_exports as encoding } from './chunk-DOWQZUTP.js';
12
12
  export { hashing_exports as hashing } from './chunk-PET2CGTH.js';
13
13
  export { text_exports as text } from './chunk-P7TXG7CI.js';
14
- export { data_exports as data } from './chunk-QY2M2UHJ.js';
14
+ export { data_exports as data } from './chunk-HJVSH7FQ.js';
15
15
  export { generators_exports as generators } from './chunk-422ICOZX.js';
16
16
  export { time_exports as time } from './chunk-IEPWZERQ.js';
17
17
  import './chunk-MLKGABMK.js';
@@ -27,6 +27,7 @@
27
27
  * - retry-after-builder: buildRetryAfterHeader, parseRetryAfterHeader
28
28
  * - priority-header: buildPriorityHeader, parsePriorityHeader
29
29
  * - websocket-close-codes: lookupCloseCode, listCloseCodes
30
+ * - hsts-header-builder: buildHsts, parseHsts
30
31
  */
31
32
  declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
32
33
  type DnsRecordType = typeof DNS_RECORD_TYPES[number];
@@ -926,6 +927,42 @@ declare function extractMultipartBoundary(contentType: string): string | null;
926
927
  declare function parseMultipartFormData(body: string, boundary: string): MultipartParseResult | {
927
928
  error: string;
928
929
  };
930
+ interface HstsOptions {
931
+ maxAge: number;
932
+ includeSubDomains?: boolean;
933
+ preload?: boolean;
934
+ }
935
+ interface HstsResult {
936
+ header: string;
937
+ headerName: 'Strict-Transport-Security';
938
+ snippet: string;
939
+ maxAge: number;
940
+ maxAgeHuman: string;
941
+ includeSubDomains: boolean;
942
+ preload: boolean;
943
+ preloadEligible: boolean;
944
+ warnings: string[];
945
+ }
946
+ /**
947
+ * Build a `Strict-Transport-Security` response-header value from a max-age
948
+ * (in seconds) plus the optional `includeSubDomains` and `preload`
949
+ * directives, flagging combinations that won't qualify for browser HSTS
950
+ * preload lists (which require max-age >= 1 year, includeSubDomains, and
951
+ * preload all together). Pure string assembly; it never inspects a live
952
+ * origin or checks the actual hstspreload.org submission list.
953
+ */
954
+ declare function buildHsts(options: HstsOptions): HstsResult | {
955
+ error: string;
956
+ };
957
+ /**
958
+ * Parse an existing `Strict-Transport-Security` header value (with or
959
+ * without a leading `Strict-Transport-Security:` label) into the same
960
+ * shape `buildHsts` returns, for explaining a header you found on a real
961
+ * response rather than building one from scratch.
962
+ */
963
+ declare function parseHsts(raw: string): HstsResult | {
964
+ error: string;
965
+ };
929
966
 
930
967
  type network_AcceptLanguageEntry = AcceptLanguageEntry;
931
968
  type network_AcceptLanguageResult = AcceptLanguageResult;
@@ -961,6 +998,8 @@ type network_HarEntry = HarEntry;
961
998
  type network_HarParseResult = HarParseResult;
962
999
  type network_HarSummary = HarSummary;
963
1000
  type network_HeaderCategory = HeaderCategory;
1001
+ type network_HstsOptions = HstsOptions;
1002
+ type network_HstsResult = HstsResult;
964
1003
  type network_HttpHeader = HttpHeader;
965
1004
  type network_Ipv6AddressType = Ipv6AddressType;
966
1005
  type network_Ipv6ParseResult = Ipv6ParseResult;
@@ -1025,6 +1064,7 @@ declare const network_buildClientHints: typeof buildClientHints;
1025
1064
  declare const network_buildContentDisposition: typeof buildContentDisposition;
1026
1065
  declare const network_buildDnsQueryUrl: typeof buildDnsQueryUrl;
1027
1066
  declare const network_buildGeoUrl: typeof buildGeoUrl;
1067
+ declare const network_buildHsts: typeof buildHsts;
1028
1068
  declare const network_buildLinkHeader: typeof buildLinkHeader;
1029
1069
  declare const network_buildMapUrl: typeof buildMapUrl;
1030
1070
  declare const network_buildPermissionsPolicy: typeof buildPermissionsPolicy;
@@ -1060,6 +1100,7 @@ declare const network_parseContentRangeHeader: typeof parseContentRangeHeader;
1060
1100
  declare const network_parseDnsResponse: typeof parseDnsResponse;
1061
1101
  declare const network_parseGeoResponse: typeof parseGeoResponse;
1062
1102
  declare const network_parseHar: typeof parseHar;
1103
+ declare const network_parseHsts: typeof parseHsts;
1063
1104
  declare const network_parseIpv6Address: typeof parseIpv6Address;
1064
1105
  declare const network_parseMultipartFormData: typeof parseMultipartFormData;
1065
1106
  declare const network_parsePermissionsPolicy: typeof parsePermissionsPolicy;
@@ -1081,7 +1122,7 @@ declare const network_validateManifest: typeof validateManifest;
1081
1122
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
1082
1123
  declare const network_validateSitemap: typeof validateSitemap;
1083
1124
  declare namespace network {
1084
- export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_lookupCloseCode as lookupCloseCode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1125
+ export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_lookupCloseCode as lookupCloseCode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1085
1126
  }
1086
1127
 
1087
- export { type PermissionsPolicyFeatureInput as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HttpHeader as J, type Ipv6AddressType as K, type Ipv6ParseResult as L, LINK_REL_VALUES as M, type LinkHeaderEntry as N, type LinkHeaderEntryInput as O, type LinkHeaderResult as P, type LinkRel as Q, type ManifestIconInfo as R, type ManifestIssue as S, type ManifestValidationResult as T, type MultipartParseResult as U, type MultipartPart as V, PERMISSIONS_POLICY_FEATURES as W, type ParsedClientHint as X, type ParsedDnsResult as Y, type ParsedGeoResult as Z, type PermissionsPolicyDirective as _, type AcceptLanguageResult as a, getStatusByCategory as a$, type PermissionsPolicyResult as a0, type PreferParameter as a1, type PreferPreference as a2, type PreferResult as a3, type PriorityResult as a4, REFERRER_POLICY_VALUES as a5, type RangeEntry as a6, type RangeEntryInput as a7, type RangeHeaderResult as a8, type ReceivedHop as a9, X_CONTENT_TYPE_OPTIONS_HEADER as aA, analyzeEmailHeaders as aB, assessContentTypeRisk as aC, buildAcceptLanguage as aD, buildCacheControl as aE, buildClientHints as aF, buildContentDisposition as aG, buildDnsQueryUrl as aH, buildGeoUrl as aI, buildLinkHeader as aJ, buildMapUrl as aK, buildPermissionsPolicy as aL, buildPreferHeader as aM, buildPriorityHeader as aN, buildRangeHeader as aO, buildReferrerPolicy as aP, buildRetryAfterHeader as aQ, buildVaryHeader as aR, buildXContentTypeOptionsHeader as aS, checkSetCookieHeader as aT, countryCodeToFlag as aU, extractMultipartBoundary as aV, formatCoordinates as aW, formatTtl as aX, getByCategory as aY, getHeader as aZ, getHeadersByCategory as a_, type ReferrerPolicyEntry as aa, type ReferrerPolicyResult as ab, type ReferrerPolicyValue as ac, type RetryAfterDateResult as ad, type RetryAfterResult as ae, type RetryAfterSecondsResult as af, type RobotsGroup as ag, type RobotsIssue as ah, type RobotsRule as ai, type RobotsValidationResult as aj, STATUS_CODES as ak, type SameSiteValue as al, type SitemapIndexEntry as am, type SitemapIssue as an, type SitemapSplitFile as ao, type SitemapUrlEntry as ap, type SitemapValidationResult as aq, type SplitSitemapOptions as ar, type SplitSitemapResult as as, type StatusCode as at, type UaDeviceType as au, type UserAgentInfo as av, type VaryHeaderEntry as aw, type VaryHeaderResult as ax, type XContentTypeOptionsHeader as ay, type XContentTypeOptionsParseResult as az, type AuthResultEntry as b, getStatusCode as b0, isClientError as b1, isServerError as b2, isSuccess as b3, isValidIp as b4, isValidIpv4 as b5, isValidIpv6 as b6, listCloseCodes as b7, lookupCloseCode as b8, parseAcceptLanguage as b9, parseClientHintHeaders as ba, parseContentDisposition as bb, parseContentRangeHeader as bc, parseDnsResponse as bd, parseGeoResponse as be, parseHar as bf, parseIpv6Address as bg, parseMultipartFormData as bh, parsePermissionsPolicy as bi, parsePreferHeader as bj, parsePriorityHeader as bk, parseRetryAfterHeader as bl, parseUserAgent as bm, parseVaryHeader as bn, parseXContentTypeOptionsHeader as bo, searchHeaders as bp, searchStatusCodes as bq, splitSitemap as br, statusCodeToText as bs, typeNumberToLabel as bt, validateDomain as bu, validateHeaderName as bv, validateHeaderValue as bw, validateManifest as bx, validateRobotsTxt as by, validateSitemap as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
1128
+ export { type ParsedGeoResult as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HstsOptions as J, type HstsResult as K, type HttpHeader as L, type Ipv6AddressType as M, type Ipv6ParseResult as N, LINK_REL_VALUES as O, type LinkHeaderEntry as P, type LinkHeaderEntryInput as Q, type LinkHeaderResult as R, type LinkRel as S, type ManifestIconInfo as T, type ManifestIssue as U, type ManifestValidationResult as V, type MultipartParseResult as W, type MultipartPart as X, PERMISSIONS_POLICY_FEATURES as Y, type ParsedClientHint as Z, type ParsedDnsResult as _, type AcceptLanguageResult as a, getByCategory as a$, type PermissionsPolicyDirective as a0, type PermissionsPolicyFeatureInput as a1, type PermissionsPolicyResult as a2, type PreferParameter as a3, type PreferPreference as a4, type PreferResult as a5, type PriorityResult as a6, REFERRER_POLICY_VALUES as a7, type RangeEntry as a8, type RangeEntryInput as a9, type XContentTypeOptionsHeader as aA, type XContentTypeOptionsParseResult as aB, X_CONTENT_TYPE_OPTIONS_HEADER as aC, analyzeEmailHeaders as aD, assessContentTypeRisk as aE, buildAcceptLanguage as aF, buildCacheControl as aG, buildClientHints as aH, buildContentDisposition as aI, buildDnsQueryUrl as aJ, buildGeoUrl as aK, buildHsts as aL, buildLinkHeader as aM, buildMapUrl as aN, buildPermissionsPolicy as aO, buildPreferHeader as aP, buildPriorityHeader as aQ, buildRangeHeader as aR, buildReferrerPolicy as aS, buildRetryAfterHeader as aT, buildVaryHeader as aU, buildXContentTypeOptionsHeader as aV, checkSetCookieHeader as aW, countryCodeToFlag as aX, extractMultipartBoundary as aY, formatCoordinates as aZ, formatTtl as a_, type RangeHeaderResult as aa, type ReceivedHop as ab, type ReferrerPolicyEntry as ac, type ReferrerPolicyResult as ad, type ReferrerPolicyValue as ae, type RetryAfterDateResult as af, type RetryAfterResult as ag, type RetryAfterSecondsResult as ah, type RobotsGroup as ai, type RobotsIssue as aj, type RobotsRule as ak, type RobotsValidationResult as al, STATUS_CODES as am, type SameSiteValue as an, type SitemapIndexEntry as ao, type SitemapIssue as ap, type SitemapSplitFile as aq, type SitemapUrlEntry as ar, type SitemapValidationResult as as, type SplitSitemapOptions as at, type SplitSitemapResult as au, type StatusCode as av, type UaDeviceType as aw, type UserAgentInfo as ax, type VaryHeaderEntry as ay, type VaryHeaderResult as az, type AuthResultEntry as b, getHeader as b0, getHeadersByCategory as b1, getStatusByCategory as b2, getStatusCode as b3, isClientError as b4, isServerError as b5, isSuccess as b6, isValidIp as b7, isValidIpv4 as b8, isValidIpv6 as b9, validateHeaderValue as bA, validateManifest as bB, validateRobotsTxt as bC, validateSitemap as bD, listCloseCodes as ba, lookupCloseCode as bb, parseAcceptLanguage as bc, parseClientHintHeaders as bd, parseContentDisposition as be, parseContentRangeHeader as bf, parseDnsResponse as bg, parseGeoResponse as bh, parseHar as bi, parseHsts as bj, parseIpv6Address as bk, parseMultipartFormData as bl, parsePermissionsPolicy as bm, parsePreferHeader as bn, parsePriorityHeader as bo, parseRetryAfterHeader as bp, parseUserAgent as bq, parseVaryHeader as br, parseXContentTypeOptionsHeader as bs, searchHeaders as bt, searchStatusCodes as bu, splitSitemap as bv, statusCodeToText as bw, typeNumberToLabel as bx, validateDomain as by, validateHeaderName as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
@@ -27,6 +27,7 @@
27
27
  * - retry-after-builder: buildRetryAfterHeader, parseRetryAfterHeader
28
28
  * - priority-header: buildPriorityHeader, parsePriorityHeader
29
29
  * - websocket-close-codes: lookupCloseCode, listCloseCodes
30
+ * - hsts-header-builder: buildHsts, parseHsts
30
31
  */
31
32
  declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
32
33
  type DnsRecordType = typeof DNS_RECORD_TYPES[number];
@@ -926,6 +927,42 @@ declare function extractMultipartBoundary(contentType: string): string | null;
926
927
  declare function parseMultipartFormData(body: string, boundary: string): MultipartParseResult | {
927
928
  error: string;
928
929
  };
930
+ interface HstsOptions {
931
+ maxAge: number;
932
+ includeSubDomains?: boolean;
933
+ preload?: boolean;
934
+ }
935
+ interface HstsResult {
936
+ header: string;
937
+ headerName: 'Strict-Transport-Security';
938
+ snippet: string;
939
+ maxAge: number;
940
+ maxAgeHuman: string;
941
+ includeSubDomains: boolean;
942
+ preload: boolean;
943
+ preloadEligible: boolean;
944
+ warnings: string[];
945
+ }
946
+ /**
947
+ * Build a `Strict-Transport-Security` response-header value from a max-age
948
+ * (in seconds) plus the optional `includeSubDomains` and `preload`
949
+ * directives, flagging combinations that won't qualify for browser HSTS
950
+ * preload lists (which require max-age >= 1 year, includeSubDomains, and
951
+ * preload all together). Pure string assembly; it never inspects a live
952
+ * origin or checks the actual hstspreload.org submission list.
953
+ */
954
+ declare function buildHsts(options: HstsOptions): HstsResult | {
955
+ error: string;
956
+ };
957
+ /**
958
+ * Parse an existing `Strict-Transport-Security` header value (with or
959
+ * without a leading `Strict-Transport-Security:` label) into the same
960
+ * shape `buildHsts` returns, for explaining a header you found on a real
961
+ * response rather than building one from scratch.
962
+ */
963
+ declare function parseHsts(raw: string): HstsResult | {
964
+ error: string;
965
+ };
929
966
 
930
967
  type network_AcceptLanguageEntry = AcceptLanguageEntry;
931
968
  type network_AcceptLanguageResult = AcceptLanguageResult;
@@ -961,6 +998,8 @@ type network_HarEntry = HarEntry;
961
998
  type network_HarParseResult = HarParseResult;
962
999
  type network_HarSummary = HarSummary;
963
1000
  type network_HeaderCategory = HeaderCategory;
1001
+ type network_HstsOptions = HstsOptions;
1002
+ type network_HstsResult = HstsResult;
964
1003
  type network_HttpHeader = HttpHeader;
965
1004
  type network_Ipv6AddressType = Ipv6AddressType;
966
1005
  type network_Ipv6ParseResult = Ipv6ParseResult;
@@ -1025,6 +1064,7 @@ declare const network_buildClientHints: typeof buildClientHints;
1025
1064
  declare const network_buildContentDisposition: typeof buildContentDisposition;
1026
1065
  declare const network_buildDnsQueryUrl: typeof buildDnsQueryUrl;
1027
1066
  declare const network_buildGeoUrl: typeof buildGeoUrl;
1067
+ declare const network_buildHsts: typeof buildHsts;
1028
1068
  declare const network_buildLinkHeader: typeof buildLinkHeader;
1029
1069
  declare const network_buildMapUrl: typeof buildMapUrl;
1030
1070
  declare const network_buildPermissionsPolicy: typeof buildPermissionsPolicy;
@@ -1060,6 +1100,7 @@ declare const network_parseContentRangeHeader: typeof parseContentRangeHeader;
1060
1100
  declare const network_parseDnsResponse: typeof parseDnsResponse;
1061
1101
  declare const network_parseGeoResponse: typeof parseGeoResponse;
1062
1102
  declare const network_parseHar: typeof parseHar;
1103
+ declare const network_parseHsts: typeof parseHsts;
1063
1104
  declare const network_parseIpv6Address: typeof parseIpv6Address;
1064
1105
  declare const network_parseMultipartFormData: typeof parseMultipartFormData;
1065
1106
  declare const network_parsePermissionsPolicy: typeof parsePermissionsPolicy;
@@ -1081,7 +1122,7 @@ declare const network_validateManifest: typeof validateManifest;
1081
1122
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
1082
1123
  declare const network_validateSitemap: typeof validateSitemap;
1083
1124
  declare namespace network {
1084
- export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_lookupCloseCode as lookupCloseCode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1125
+ export { type network_AcceptLanguageEntry as AcceptLanguageEntry, type network_AcceptLanguageResult as AcceptLanguageResult, type network_AuthResultEntry as AuthResultEntry, type network_BuildRangeHeaderOptions as BuildRangeHeaderOptions, network_CLIENT_HINTS as CLIENT_HINTS, type network_CacheControlDirective as CacheControlDirective, type network_CacheControlOptions as CacheControlOptions, type network_CacheControlResult as CacheControlResult, type network_ClientHintDef as ClientHintDef, type network_ClientHintValueType as ClientHintValueType, type network_ClientHintsBuildResult as ClientHintsBuildResult, type network_ClientHintsParseResult as ClientHintsParseResult, type network_CloseCodeInfo as CloseCodeInfo, type network_CloseCodeRange as CloseCodeRange, type network_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, type network_ContentTypeRiskResult as ContentTypeRiskResult, type network_ContentTypeSniffRisk as ContentTypeSniffRisk, type network_CookieAttributes as CookieAttributes, type network_CookieCheckResult as CookieCheckResult, network_DNS_RECORD_TYPES as DNS_RECORD_TYPES, type network_DnsRecord as DnsRecord, type network_DnsRecordType as DnsRecordType, type network_DnsResponse as DnsResponse, type network_EmailHeaderAnalysis as EmailHeaderAnalysis, type network_EmailHeaderField as EmailHeaderField, type network_GeoResult as GeoResult, network_HTTP_HEADERS as HTTP_HEADERS, type network_HarEntry as HarEntry, type network_HarParseResult as HarParseResult, type network_HarSummary as HarSummary, type network_HeaderCategory as HeaderCategory, type network_HstsOptions as HstsOptions, type network_HstsResult as HstsResult, type network_HttpHeader as HttpHeader, type network_Ipv6AddressType as Ipv6AddressType, type network_Ipv6ParseResult as Ipv6ParseResult, network_LINK_REL_VALUES as LINK_REL_VALUES, type network_LinkHeaderEntry as LinkHeaderEntry, type network_LinkHeaderEntryInput as LinkHeaderEntryInput, type network_LinkHeaderResult as LinkHeaderResult, type network_LinkRel as LinkRel, type network_ManifestIconInfo as ManifestIconInfo, type network_ManifestIssue as ManifestIssue, type network_ManifestValidationResult as ManifestValidationResult, type network_MultipartParseResult as MultipartParseResult, type network_MultipartPart as MultipartPart, network_PERMISSIONS_POLICY_FEATURES as PERMISSIONS_POLICY_FEATURES, type network_ParsedClientHint as ParsedClientHint, type network_ParsedDnsResult as ParsedDnsResult, type network_ParsedGeoResult as ParsedGeoResult, type network_PermissionsPolicyDirective as PermissionsPolicyDirective, type network_PermissionsPolicyFeatureInput as PermissionsPolicyFeatureInput, type network_PermissionsPolicyResult as PermissionsPolicyResult, type network_PreferParameter as PreferParameter, type network_PreferPreference as PreferPreference, type network_PreferResult as PreferResult, type network_PriorityResult as PriorityResult, network_REFERRER_POLICY_VALUES as REFERRER_POLICY_VALUES, type network_RangeEntry as RangeEntry, type network_RangeEntryInput as RangeEntryInput, type network_RangeHeaderResult as RangeHeaderResult, type network_ReceivedHop as ReceivedHop, type network_ReferrerPolicyEntry as ReferrerPolicyEntry, type network_ReferrerPolicyResult as ReferrerPolicyResult, type network_ReferrerPolicyValue as ReferrerPolicyValue, type network_RetryAfterDateResult as RetryAfterDateResult, type network_RetryAfterResult as RetryAfterResult, type network_RetryAfterSecondsResult as RetryAfterSecondsResult, type network_RobotsGroup as RobotsGroup, type network_RobotsIssue as RobotsIssue, type network_RobotsRule as RobotsRule, type network_RobotsValidationResult as RobotsValidationResult, network_STATUS_CODES as STATUS_CODES, type network_SameSiteValue as SameSiteValue, type network_SitemapIndexEntry as SitemapIndexEntry, type network_SitemapIssue as SitemapIssue, type network_SitemapSplitFile as SitemapSplitFile, type network_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, type network_SplitSitemapOptions as SplitSitemapOptions, type network_SplitSitemapResult as SplitSitemapResult, type network_StatusCode as StatusCode, type network_UaDeviceType as UaDeviceType, type network_UserAgentInfo as UserAgentInfo, type network_VaryHeaderEntry as VaryHeaderEntry, type network_VaryHeaderResult as VaryHeaderResult, type network_XContentTypeOptionsHeader as XContentTypeOptionsHeader, type network_XContentTypeOptionsParseResult as XContentTypeOptionsParseResult, network_X_CONTENT_TYPE_OPTIONS_HEADER as X_CONTENT_TYPE_OPTIONS_HEADER, network_analyzeEmailHeaders as analyzeEmailHeaders, network_assessContentTypeRisk as assessContentTypeRisk, network_buildAcceptLanguage as buildAcceptLanguage, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildContentDisposition as buildContentDisposition, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildHsts as buildHsts, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildPreferHeader as buildPreferHeader, network_buildPriorityHeader as buildPriorityHeader, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildRetryAfterHeader as buildRetryAfterHeader, network_buildVaryHeader as buildVaryHeader, network_buildXContentTypeOptionsHeader as buildXContentTypeOptionsHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, network_extractMultipartBoundary as extractMultipartBoundary, network_formatCoordinates as formatCoordinates, network_formatTtl as formatTtl, network_getByCategory as getByCategory, network_getHeader as getHeader, network_getHeadersByCategory as getHeadersByCategory, network_getStatusByCategory as getStatusByCategory, network_getStatusCode as getStatusCode, network_isClientError as isClientError, network_isServerError as isServerError, network_isSuccess as isSuccess, network_isValidIp as isValidIp, network_isValidIpv4 as isValidIpv4, network_isValidIpv6 as isValidIpv6, network_listCloseCodes as listCloseCodes, network_lookupCloseCode as lookupCloseCode, network_parseAcceptLanguage as parseAcceptLanguage, network_parseClientHintHeaders as parseClientHintHeaders, network_parseContentDisposition as parseContentDisposition, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseHsts as parseHsts, network_parseIpv6Address as parseIpv6Address, network_parseMultipartFormData as parseMultipartFormData, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parsePreferHeader as parsePreferHeader, network_parsePriorityHeader as parsePriorityHeader, network_parseRetryAfterHeader as parseRetryAfterHeader, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_parseXContentTypeOptionsHeader as parseXContentTypeOptionsHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, network_splitSitemap as splitSitemap, network_statusCodeToText as statusCodeToText, network_typeNumberToLabel as typeNumberToLabel, network_validateDomain as validateDomain, network_validateHeaderName as validateHeaderName, network_validateHeaderValue as validateHeaderValue, network_validateManifest as validateManifest, network_validateRobotsTxt as validateRobotsTxt, network_validateSitemap as validateSitemap };
1085
1126
  }
1086
1127
 
1087
- export { type PermissionsPolicyFeatureInput as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HttpHeader as J, type Ipv6AddressType as K, type Ipv6ParseResult as L, LINK_REL_VALUES as M, type LinkHeaderEntry as N, type LinkHeaderEntryInput as O, type LinkHeaderResult as P, type LinkRel as Q, type ManifestIconInfo as R, type ManifestIssue as S, type ManifestValidationResult as T, type MultipartParseResult as U, type MultipartPart as V, PERMISSIONS_POLICY_FEATURES as W, type ParsedClientHint as X, type ParsedDnsResult as Y, type ParsedGeoResult as Z, type PermissionsPolicyDirective as _, type AcceptLanguageResult as a, getStatusByCategory as a$, type PermissionsPolicyResult as a0, type PreferParameter as a1, type PreferPreference as a2, type PreferResult as a3, type PriorityResult as a4, REFERRER_POLICY_VALUES as a5, type RangeEntry as a6, type RangeEntryInput as a7, type RangeHeaderResult as a8, type ReceivedHop as a9, X_CONTENT_TYPE_OPTIONS_HEADER as aA, analyzeEmailHeaders as aB, assessContentTypeRisk as aC, buildAcceptLanguage as aD, buildCacheControl as aE, buildClientHints as aF, buildContentDisposition as aG, buildDnsQueryUrl as aH, buildGeoUrl as aI, buildLinkHeader as aJ, buildMapUrl as aK, buildPermissionsPolicy as aL, buildPreferHeader as aM, buildPriorityHeader as aN, buildRangeHeader as aO, buildReferrerPolicy as aP, buildRetryAfterHeader as aQ, buildVaryHeader as aR, buildXContentTypeOptionsHeader as aS, checkSetCookieHeader as aT, countryCodeToFlag as aU, extractMultipartBoundary as aV, formatCoordinates as aW, formatTtl as aX, getByCategory as aY, getHeader as aZ, getHeadersByCategory as a_, type ReferrerPolicyEntry as aa, type ReferrerPolicyResult as ab, type ReferrerPolicyValue as ac, type RetryAfterDateResult as ad, type RetryAfterResult as ae, type RetryAfterSecondsResult as af, type RobotsGroup as ag, type RobotsIssue as ah, type RobotsRule as ai, type RobotsValidationResult as aj, STATUS_CODES as ak, type SameSiteValue as al, type SitemapIndexEntry as am, type SitemapIssue as an, type SitemapSplitFile as ao, type SitemapUrlEntry as ap, type SitemapValidationResult as aq, type SplitSitemapOptions as ar, type SplitSitemapResult as as, type StatusCode as at, type UaDeviceType as au, type UserAgentInfo as av, type VaryHeaderEntry as aw, type VaryHeaderResult as ax, type XContentTypeOptionsHeader as ay, type XContentTypeOptionsParseResult as az, type AuthResultEntry as b, getStatusCode as b0, isClientError as b1, isServerError as b2, isSuccess as b3, isValidIp as b4, isValidIpv4 as b5, isValidIpv6 as b6, listCloseCodes as b7, lookupCloseCode as b8, parseAcceptLanguage as b9, parseClientHintHeaders as ba, parseContentDisposition as bb, parseContentRangeHeader as bc, parseDnsResponse as bd, parseGeoResponse as be, parseHar as bf, parseIpv6Address as bg, parseMultipartFormData as bh, parsePermissionsPolicy as bi, parsePreferHeader as bj, parsePriorityHeader as bk, parseRetryAfterHeader as bl, parseUserAgent as bm, parseVaryHeader as bn, parseXContentTypeOptionsHeader as bo, searchHeaders as bp, searchStatusCodes as bq, splitSitemap as br, statusCodeToText as bs, typeNumberToLabel as bt, validateDomain as bu, validateHeaderName as bv, validateHeaderValue as bw, validateManifest as bx, validateRobotsTxt as by, validateSitemap as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };
1128
+ export { type ParsedGeoResult as $, type AcceptLanguageEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type HarSummary as F, type GeoResult as G, HTTP_HEADERS as H, type HeaderCategory as I, type HstsOptions as J, type HstsResult as K, type HttpHeader as L, type Ipv6AddressType as M, type Ipv6ParseResult as N, LINK_REL_VALUES as O, type LinkHeaderEntry as P, type LinkHeaderEntryInput as Q, type LinkHeaderResult as R, type LinkRel as S, type ManifestIconInfo as T, type ManifestIssue as U, type ManifestValidationResult as V, type MultipartParseResult as W, type MultipartPart as X, PERMISSIONS_POLICY_FEATURES as Y, type ParsedClientHint as Z, type ParsedDnsResult as _, type AcceptLanguageResult as a, getByCategory as a$, type PermissionsPolicyDirective as a0, type PermissionsPolicyFeatureInput as a1, type PermissionsPolicyResult as a2, type PreferParameter as a3, type PreferPreference as a4, type PreferResult as a5, type PriorityResult as a6, REFERRER_POLICY_VALUES as a7, type RangeEntry as a8, type RangeEntryInput as a9, type XContentTypeOptionsHeader as aA, type XContentTypeOptionsParseResult as aB, X_CONTENT_TYPE_OPTIONS_HEADER as aC, analyzeEmailHeaders as aD, assessContentTypeRisk as aE, buildAcceptLanguage as aF, buildCacheControl as aG, buildClientHints as aH, buildContentDisposition as aI, buildDnsQueryUrl as aJ, buildGeoUrl as aK, buildHsts as aL, buildLinkHeader as aM, buildMapUrl as aN, buildPermissionsPolicy as aO, buildPreferHeader as aP, buildPriorityHeader as aQ, buildRangeHeader as aR, buildReferrerPolicy as aS, buildRetryAfterHeader as aT, buildVaryHeader as aU, buildXContentTypeOptionsHeader as aV, checkSetCookieHeader as aW, countryCodeToFlag as aX, extractMultipartBoundary as aY, formatCoordinates as aZ, formatTtl as a_, type RangeHeaderResult as aa, type ReceivedHop as ab, type ReferrerPolicyEntry as ac, type ReferrerPolicyResult as ad, type ReferrerPolicyValue as ae, type RetryAfterDateResult as af, type RetryAfterResult as ag, type RetryAfterSecondsResult as ah, type RobotsGroup as ai, type RobotsIssue as aj, type RobotsRule as ak, type RobotsValidationResult as al, STATUS_CODES as am, type SameSiteValue as an, type SitemapIndexEntry as ao, type SitemapIssue as ap, type SitemapSplitFile as aq, type SitemapUrlEntry as ar, type SitemapValidationResult as as, type SplitSitemapOptions as at, type SplitSitemapResult as au, type StatusCode as av, type UaDeviceType as aw, type UserAgentInfo as ax, type VaryHeaderEntry as ay, type VaryHeaderResult as az, type AuthResultEntry as b, getHeader as b0, getHeadersByCategory as b1, getStatusByCategory as b2, getStatusCode as b3, isClientError as b4, isServerError as b5, isSuccess as b6, isValidIp as b7, isValidIpv4 as b8, isValidIpv6 as b9, validateHeaderValue as bA, validateManifest as bB, validateRobotsTxt as bC, validateSitemap as bD, listCloseCodes as ba, lookupCloseCode as bb, parseAcceptLanguage as bc, parseClientHintHeaders as bd, parseContentDisposition as be, parseContentRangeHeader as bf, parseDnsResponse as bg, parseGeoResponse as bh, parseHar as bi, parseHsts as bj, parseIpv6Address as bk, parseMultipartFormData as bl, parsePermissionsPolicy as bm, parsePreferHeader as bn, parsePriorityHeader as bo, parseRetryAfterHeader as bp, parseUserAgent as bq, parseVaryHeader as br, parseXContentTypeOptionsHeader as bs, searchHeaders as bt, searchStatusCodes as bu, splitSitemap as bv, statusCodeToText as bw, typeNumberToLabel as bx, validateDomain as by, validateHeaderName as bz, type CacheControlDirective as c, type CacheControlOptions as d, type CacheControlResult as e, type ClientHintDef as f, type ClientHintValueType as g, type ClientHintsBuildResult as h, type ClientHintsParseResult as i, type CloseCodeInfo as j, type CloseCodeRange as k, type ContentDispositionBuildOptions as l, type ContentDispositionBuildResult as m, network as n, type ContentDispositionParseResult as o, type ContentRangeResult as p, type ContentTypeRiskResult as q, type ContentTypeSniffRisk as r, type CookieAttributes as s, type CookieCheckResult as t, type DnsRecord as u, type DnsRecordType as v, type DnsResponse as w, type EmailHeaderField as x, type HarEntry as y, type HarParseResult as z };