@utilix-tech/sdk 0.64.0 → 0.66.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.
@@ -27,6 +27,9 @@
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
31
+ * - x-robots-tag-builder: buildXRobotsTag, parseXRobotsTag
32
+ * - websocket-opcode-reference: lookupOpcode, listOpcodes
30
33
  */
31
34
  declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
32
35
  type DnsRecordType = typeof DNS_RECORD_TYPES[number];
@@ -926,6 +929,102 @@ declare function extractMultipartBoundary(contentType: string): string | null;
926
929
  declare function parseMultipartFormData(body: string, boundary: string): MultipartParseResult | {
927
930
  error: string;
928
931
  };
932
+ interface HstsOptions {
933
+ maxAge: number;
934
+ includeSubDomains?: boolean;
935
+ preload?: boolean;
936
+ }
937
+ interface HstsResult {
938
+ header: string;
939
+ headerName: 'Strict-Transport-Security';
940
+ snippet: string;
941
+ maxAge: number;
942
+ maxAgeHuman: string;
943
+ includeSubDomains: boolean;
944
+ preload: boolean;
945
+ preloadEligible: boolean;
946
+ warnings: string[];
947
+ }
948
+ /**
949
+ * Build a `Strict-Transport-Security` response-header value from a max-age
950
+ * (in seconds) plus the optional `includeSubDomains` and `preload`
951
+ * directives, flagging combinations that won't qualify for browser HSTS
952
+ * preload lists (which require max-age >= 1 year, includeSubDomains, and
953
+ * preload all together). Pure string assembly; it never inspects a live
954
+ * origin or checks the actual hstspreload.org submission list.
955
+ */
956
+ declare function buildHsts(options: HstsOptions): HstsResult | {
957
+ error: string;
958
+ };
959
+ /**
960
+ * Parse an existing `Strict-Transport-Security` header value (with or
961
+ * without a leading `Strict-Transport-Security:` label) into the same
962
+ * shape `buildHsts` returns, for explaining a header you found on a real
963
+ * response rather than building one from scratch.
964
+ */
965
+ declare function parseHsts(raw: string): HstsResult | {
966
+ error: string;
967
+ };
968
+ type XRobotsTagFlag = 'noindex' | 'nofollow' | 'noarchive' | 'nosnippet' | 'notranslate' | 'noimageindex' | 'none' | 'all' | 'indexifembedded';
969
+ interface XRobotsTagOptions {
970
+ flags?: XRobotsTagFlag[];
971
+ maxSnippet?: number;
972
+ maxImagePreview?: 'none' | 'standard' | 'large';
973
+ maxVideoPreview?: number;
974
+ unavailableAfter?: string;
975
+ userAgent?: string;
976
+ }
977
+ interface XRobotsTagResult {
978
+ header: string;
979
+ headerName: 'X-Robots-Tag';
980
+ snippet: string;
981
+ directives: string[];
982
+ notes: string[];
983
+ warnings: string[];
984
+ }
985
+ /**
986
+ * Build an `X-Robots-Tag` response-header value from flag directives
987
+ * (noindex, nofollow, etc.) plus the optional max-snippet, max-image-preview,
988
+ * max-video-preview, and unavailable_after value directives, per Google's
989
+ * documented robots directive syntax (the same directive vocabulary as the
990
+ * `<meta name="robots">` tag, just delivered as a header so it also applies
991
+ * to non-HTML resources like PDFs and images). Optionally scope the whole
992
+ * header to a single crawler by passing `userAgent` (e.g. "googlebot").
993
+ * Pure string assembly; it never crawls or inspects a live page.
994
+ */
995
+ declare function buildXRobotsTag(options: XRobotsTagOptions): XRobotsTagResult | {
996
+ error: string;
997
+ };
998
+ /**
999
+ * Parse an existing `X-Robots-Tag` header value (with or without a leading
1000
+ * `X-Robots-Tag:` label, and with or without a leading crawler user-agent
1001
+ * token) back into the same shape `buildXRobotsTag` returns.
1002
+ */
1003
+ declare function parseXRobotsTag(raw: string): XRobotsTagResult | {
1004
+ error: string;
1005
+ };
1006
+ type OpcodeCategory = 'data' | 'control' | 'reserved-non-control' | 'reserved-control';
1007
+ interface OpcodeInfo {
1008
+ opcode: number;
1009
+ hex: string;
1010
+ name: string;
1011
+ description: string;
1012
+ category: OpcodeCategory;
1013
+ isControl: boolean;
1014
+ }
1015
+ /**
1016
+ * List every WebSocket frame opcode (0x0-0xF), the full 4-bit opcode space
1017
+ * defined by RFC 6455, in ascending order.
1018
+ */
1019
+ declare function listOpcodes(): OpcodeInfo[];
1020
+ /**
1021
+ * Look up what a WebSocket frame opcode means per RFC 6455: 0x0-0x2 are data
1022
+ * frames, 0x8-0xA are control frames, and the rest of the 4-bit opcode space
1023
+ * is reserved for future protocol revisions.
1024
+ */
1025
+ declare function lookupOpcode(opcode: number): OpcodeInfo | {
1026
+ error: string;
1027
+ };
929
1028
 
930
1029
  type network_AcceptLanguageEntry = AcceptLanguageEntry;
931
1030
  type network_AcceptLanguageResult = AcceptLanguageResult;
@@ -961,6 +1060,8 @@ type network_HarEntry = HarEntry;
961
1060
  type network_HarParseResult = HarParseResult;
962
1061
  type network_HarSummary = HarSummary;
963
1062
  type network_HeaderCategory = HeaderCategory;
1063
+ type network_HstsOptions = HstsOptions;
1064
+ type network_HstsResult = HstsResult;
964
1065
  type network_HttpHeader = HttpHeader;
965
1066
  type network_Ipv6AddressType = Ipv6AddressType;
966
1067
  type network_Ipv6ParseResult = Ipv6ParseResult;
@@ -974,6 +1075,8 @@ type network_ManifestIssue = ManifestIssue;
974
1075
  type network_ManifestValidationResult = ManifestValidationResult;
975
1076
  type network_MultipartParseResult = MultipartParseResult;
976
1077
  type network_MultipartPart = MultipartPart;
1078
+ type network_OpcodeCategory = OpcodeCategory;
1079
+ type network_OpcodeInfo = OpcodeInfo;
977
1080
  declare const network_PERMISSIONS_POLICY_FEATURES: typeof PERMISSIONS_POLICY_FEATURES;
978
1081
  type network_ParsedClientHint = ParsedClientHint;
979
1082
  type network_ParsedDnsResult = ParsedDnsResult;
@@ -1016,6 +1119,9 @@ type network_VaryHeaderEntry = VaryHeaderEntry;
1016
1119
  type network_VaryHeaderResult = VaryHeaderResult;
1017
1120
  type network_XContentTypeOptionsHeader = XContentTypeOptionsHeader;
1018
1121
  type network_XContentTypeOptionsParseResult = XContentTypeOptionsParseResult;
1122
+ type network_XRobotsTagFlag = XRobotsTagFlag;
1123
+ type network_XRobotsTagOptions = XRobotsTagOptions;
1124
+ type network_XRobotsTagResult = XRobotsTagResult;
1019
1125
  declare const network_X_CONTENT_TYPE_OPTIONS_HEADER: typeof X_CONTENT_TYPE_OPTIONS_HEADER;
1020
1126
  declare const network_analyzeEmailHeaders: typeof analyzeEmailHeaders;
1021
1127
  declare const network_assessContentTypeRisk: typeof assessContentTypeRisk;
@@ -1025,6 +1131,7 @@ declare const network_buildClientHints: typeof buildClientHints;
1025
1131
  declare const network_buildContentDisposition: typeof buildContentDisposition;
1026
1132
  declare const network_buildDnsQueryUrl: typeof buildDnsQueryUrl;
1027
1133
  declare const network_buildGeoUrl: typeof buildGeoUrl;
1134
+ declare const network_buildHsts: typeof buildHsts;
1028
1135
  declare const network_buildLinkHeader: typeof buildLinkHeader;
1029
1136
  declare const network_buildMapUrl: typeof buildMapUrl;
1030
1137
  declare const network_buildPermissionsPolicy: typeof buildPermissionsPolicy;
@@ -1035,6 +1142,7 @@ declare const network_buildReferrerPolicy: typeof buildReferrerPolicy;
1035
1142
  declare const network_buildRetryAfterHeader: typeof buildRetryAfterHeader;
1036
1143
  declare const network_buildVaryHeader: typeof buildVaryHeader;
1037
1144
  declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
1145
+ declare const network_buildXRobotsTag: typeof buildXRobotsTag;
1038
1146
  declare const network_checkSetCookieHeader: typeof checkSetCookieHeader;
1039
1147
  declare const network_countryCodeToFlag: typeof countryCodeToFlag;
1040
1148
  declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
@@ -1052,7 +1160,9 @@ declare const network_isValidIp: typeof isValidIp;
1052
1160
  declare const network_isValidIpv4: typeof isValidIpv4;
1053
1161
  declare const network_isValidIpv6: typeof isValidIpv6;
1054
1162
  declare const network_listCloseCodes: typeof listCloseCodes;
1163
+ declare const network_listOpcodes: typeof listOpcodes;
1055
1164
  declare const network_lookupCloseCode: typeof lookupCloseCode;
1165
+ declare const network_lookupOpcode: typeof lookupOpcode;
1056
1166
  declare const network_parseAcceptLanguage: typeof parseAcceptLanguage;
1057
1167
  declare const network_parseClientHintHeaders: typeof parseClientHintHeaders;
1058
1168
  declare const network_parseContentDisposition: typeof parseContentDisposition;
@@ -1060,6 +1170,7 @@ declare const network_parseContentRangeHeader: typeof parseContentRangeHeader;
1060
1170
  declare const network_parseDnsResponse: typeof parseDnsResponse;
1061
1171
  declare const network_parseGeoResponse: typeof parseGeoResponse;
1062
1172
  declare const network_parseHar: typeof parseHar;
1173
+ declare const network_parseHsts: typeof parseHsts;
1063
1174
  declare const network_parseIpv6Address: typeof parseIpv6Address;
1064
1175
  declare const network_parseMultipartFormData: typeof parseMultipartFormData;
1065
1176
  declare const network_parsePermissionsPolicy: typeof parsePermissionsPolicy;
@@ -1069,6 +1180,7 @@ declare const network_parseRetryAfterHeader: typeof parseRetryAfterHeader;
1069
1180
  declare const network_parseUserAgent: typeof parseUserAgent;
1070
1181
  declare const network_parseVaryHeader: typeof parseVaryHeader;
1071
1182
  declare const network_parseXContentTypeOptionsHeader: typeof parseXContentTypeOptionsHeader;
1183
+ declare const network_parseXRobotsTag: typeof parseXRobotsTag;
1072
1184
  declare const network_searchHeaders: typeof searchHeaders;
1073
1185
  declare const network_searchStatusCodes: typeof searchStatusCodes;
1074
1186
  declare const network_splitSitemap: typeof splitSitemap;
@@ -1081,7 +1193,7 @@ declare const network_validateManifest: typeof validateManifest;
1081
1193
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
1082
1194
  declare const network_validateSitemap: typeof validateSitemap;
1083
1195
  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 };
1196
+ 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, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, 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, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, 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_buildXRobotsTag as buildXRobotsTag, 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_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, 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_parseXRobotsTag as parseXRobotsTag, 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
1197
  }
1086
1198
 
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 };
1199
+ export { type ParsedClientHint 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, type OpcodeCategory as Y, type OpcodeInfo as Z, PERMISSIONS_POLICY_FEATURES as _, type AcceptLanguageResult as a, buildXRobotsTag as a$, type ParsedDnsResult as a0, type ParsedGeoResult as a1, type PermissionsPolicyDirective as a2, type PermissionsPolicyFeatureInput as a3, type PermissionsPolicyResult as a4, type PreferParameter as a5, type PreferPreference as a6, type PreferResult as a7, type PriorityResult as a8, REFERRER_POLICY_VALUES as a9, type VaryHeaderEntry as aA, type VaryHeaderResult as aB, type XContentTypeOptionsHeader as aC, type XContentTypeOptionsParseResult as aD, type XRobotsTagFlag as aE, type XRobotsTagOptions as aF, type XRobotsTagResult as aG, X_CONTENT_TYPE_OPTIONS_HEADER as aH, analyzeEmailHeaders as aI, assessContentTypeRisk as aJ, buildAcceptLanguage as aK, buildCacheControl as aL, buildClientHints as aM, buildContentDisposition as aN, buildDnsQueryUrl as aO, buildGeoUrl as aP, buildHsts as aQ, buildLinkHeader as aR, buildMapUrl as aS, buildPermissionsPolicy as aT, buildPreferHeader as aU, buildPriorityHeader as aV, buildRangeHeader as aW, buildReferrerPolicy as aX, buildRetryAfterHeader as aY, buildVaryHeader as aZ, buildXContentTypeOptionsHeader as a_, type RangeEntry as aa, type RangeEntryInput as ab, type RangeHeaderResult as ac, type ReceivedHop as ad, type ReferrerPolicyEntry as ae, type ReferrerPolicyResult as af, type ReferrerPolicyValue as ag, type RetryAfterDateResult as ah, type RetryAfterResult as ai, type RetryAfterSecondsResult as aj, type RobotsGroup as ak, type RobotsIssue as al, type RobotsRule as am, type RobotsValidationResult as an, STATUS_CODES as ao, type SameSiteValue as ap, type SitemapIndexEntry as aq, type SitemapIssue as ar, type SitemapSplitFile as as, type SitemapUrlEntry as at, type SitemapValidationResult as au, type SplitSitemapOptions as av, type SplitSitemapResult as aw, type StatusCode as ax, type UaDeviceType as ay, type UserAgentInfo as az, type AuthResultEntry as b, checkSetCookieHeader as b0, countryCodeToFlag as b1, extractMultipartBoundary as b2, formatCoordinates as b3, formatTtl as b4, getByCategory as b5, getHeader as b6, getHeadersByCategory as b7, getStatusByCategory as b8, getStatusCode as b9, parseXContentTypeOptionsHeader as bA, parseXRobotsTag as bB, searchHeaders as bC, searchStatusCodes as bD, splitSitemap as bE, statusCodeToText as bF, typeNumberToLabel as bG, validateDomain as bH, validateHeaderName as bI, validateHeaderValue as bJ, validateManifest as bK, validateRobotsTxt as bL, validateSitemap as bM, isClientError as ba, isServerError as bb, isSuccess as bc, isValidIp as bd, isValidIpv4 as be, isValidIpv6 as bf, listCloseCodes as bg, listOpcodes as bh, lookupCloseCode as bi, lookupOpcode as bj, parseAcceptLanguage as bk, parseClientHintHeaders as bl, parseContentDisposition as bm, parseContentRangeHeader as bn, parseDnsResponse as bo, parseGeoResponse as bp, parseHar as bq, parseHsts as br, parseIpv6Address as bs, parseMultipartFormData as bt, parsePermissionsPolicy as bu, parsePreferHeader as bv, parsePriorityHeader as bw, parseRetryAfterHeader as bx, parseUserAgent as by, parseVaryHeader 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,9 @@
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
31
+ * - x-robots-tag-builder: buildXRobotsTag, parseXRobotsTag
32
+ * - websocket-opcode-reference: lookupOpcode, listOpcodes
30
33
  */
31
34
  declare const DNS_RECORD_TYPES: readonly ["A", "AAAA", "CNAME", "MX", "TXT", "NS", "SOA", "PTR", "SRV", "CAA"];
32
35
  type DnsRecordType = typeof DNS_RECORD_TYPES[number];
@@ -926,6 +929,102 @@ declare function extractMultipartBoundary(contentType: string): string | null;
926
929
  declare function parseMultipartFormData(body: string, boundary: string): MultipartParseResult | {
927
930
  error: string;
928
931
  };
932
+ interface HstsOptions {
933
+ maxAge: number;
934
+ includeSubDomains?: boolean;
935
+ preload?: boolean;
936
+ }
937
+ interface HstsResult {
938
+ header: string;
939
+ headerName: 'Strict-Transport-Security';
940
+ snippet: string;
941
+ maxAge: number;
942
+ maxAgeHuman: string;
943
+ includeSubDomains: boolean;
944
+ preload: boolean;
945
+ preloadEligible: boolean;
946
+ warnings: string[];
947
+ }
948
+ /**
949
+ * Build a `Strict-Transport-Security` response-header value from a max-age
950
+ * (in seconds) plus the optional `includeSubDomains` and `preload`
951
+ * directives, flagging combinations that won't qualify for browser HSTS
952
+ * preload lists (which require max-age >= 1 year, includeSubDomains, and
953
+ * preload all together). Pure string assembly; it never inspects a live
954
+ * origin or checks the actual hstspreload.org submission list.
955
+ */
956
+ declare function buildHsts(options: HstsOptions): HstsResult | {
957
+ error: string;
958
+ };
959
+ /**
960
+ * Parse an existing `Strict-Transport-Security` header value (with or
961
+ * without a leading `Strict-Transport-Security:` label) into the same
962
+ * shape `buildHsts` returns, for explaining a header you found on a real
963
+ * response rather than building one from scratch.
964
+ */
965
+ declare function parseHsts(raw: string): HstsResult | {
966
+ error: string;
967
+ };
968
+ type XRobotsTagFlag = 'noindex' | 'nofollow' | 'noarchive' | 'nosnippet' | 'notranslate' | 'noimageindex' | 'none' | 'all' | 'indexifembedded';
969
+ interface XRobotsTagOptions {
970
+ flags?: XRobotsTagFlag[];
971
+ maxSnippet?: number;
972
+ maxImagePreview?: 'none' | 'standard' | 'large';
973
+ maxVideoPreview?: number;
974
+ unavailableAfter?: string;
975
+ userAgent?: string;
976
+ }
977
+ interface XRobotsTagResult {
978
+ header: string;
979
+ headerName: 'X-Robots-Tag';
980
+ snippet: string;
981
+ directives: string[];
982
+ notes: string[];
983
+ warnings: string[];
984
+ }
985
+ /**
986
+ * Build an `X-Robots-Tag` response-header value from flag directives
987
+ * (noindex, nofollow, etc.) plus the optional max-snippet, max-image-preview,
988
+ * max-video-preview, and unavailable_after value directives, per Google's
989
+ * documented robots directive syntax (the same directive vocabulary as the
990
+ * `<meta name="robots">` tag, just delivered as a header so it also applies
991
+ * to non-HTML resources like PDFs and images). Optionally scope the whole
992
+ * header to a single crawler by passing `userAgent` (e.g. "googlebot").
993
+ * Pure string assembly; it never crawls or inspects a live page.
994
+ */
995
+ declare function buildXRobotsTag(options: XRobotsTagOptions): XRobotsTagResult | {
996
+ error: string;
997
+ };
998
+ /**
999
+ * Parse an existing `X-Robots-Tag` header value (with or without a leading
1000
+ * `X-Robots-Tag:` label, and with or without a leading crawler user-agent
1001
+ * token) back into the same shape `buildXRobotsTag` returns.
1002
+ */
1003
+ declare function parseXRobotsTag(raw: string): XRobotsTagResult | {
1004
+ error: string;
1005
+ };
1006
+ type OpcodeCategory = 'data' | 'control' | 'reserved-non-control' | 'reserved-control';
1007
+ interface OpcodeInfo {
1008
+ opcode: number;
1009
+ hex: string;
1010
+ name: string;
1011
+ description: string;
1012
+ category: OpcodeCategory;
1013
+ isControl: boolean;
1014
+ }
1015
+ /**
1016
+ * List every WebSocket frame opcode (0x0-0xF), the full 4-bit opcode space
1017
+ * defined by RFC 6455, in ascending order.
1018
+ */
1019
+ declare function listOpcodes(): OpcodeInfo[];
1020
+ /**
1021
+ * Look up what a WebSocket frame opcode means per RFC 6455: 0x0-0x2 are data
1022
+ * frames, 0x8-0xA are control frames, and the rest of the 4-bit opcode space
1023
+ * is reserved for future protocol revisions.
1024
+ */
1025
+ declare function lookupOpcode(opcode: number): OpcodeInfo | {
1026
+ error: string;
1027
+ };
929
1028
 
930
1029
  type network_AcceptLanguageEntry = AcceptLanguageEntry;
931
1030
  type network_AcceptLanguageResult = AcceptLanguageResult;
@@ -961,6 +1060,8 @@ type network_HarEntry = HarEntry;
961
1060
  type network_HarParseResult = HarParseResult;
962
1061
  type network_HarSummary = HarSummary;
963
1062
  type network_HeaderCategory = HeaderCategory;
1063
+ type network_HstsOptions = HstsOptions;
1064
+ type network_HstsResult = HstsResult;
964
1065
  type network_HttpHeader = HttpHeader;
965
1066
  type network_Ipv6AddressType = Ipv6AddressType;
966
1067
  type network_Ipv6ParseResult = Ipv6ParseResult;
@@ -974,6 +1075,8 @@ type network_ManifestIssue = ManifestIssue;
974
1075
  type network_ManifestValidationResult = ManifestValidationResult;
975
1076
  type network_MultipartParseResult = MultipartParseResult;
976
1077
  type network_MultipartPart = MultipartPart;
1078
+ type network_OpcodeCategory = OpcodeCategory;
1079
+ type network_OpcodeInfo = OpcodeInfo;
977
1080
  declare const network_PERMISSIONS_POLICY_FEATURES: typeof PERMISSIONS_POLICY_FEATURES;
978
1081
  type network_ParsedClientHint = ParsedClientHint;
979
1082
  type network_ParsedDnsResult = ParsedDnsResult;
@@ -1016,6 +1119,9 @@ type network_VaryHeaderEntry = VaryHeaderEntry;
1016
1119
  type network_VaryHeaderResult = VaryHeaderResult;
1017
1120
  type network_XContentTypeOptionsHeader = XContentTypeOptionsHeader;
1018
1121
  type network_XContentTypeOptionsParseResult = XContentTypeOptionsParseResult;
1122
+ type network_XRobotsTagFlag = XRobotsTagFlag;
1123
+ type network_XRobotsTagOptions = XRobotsTagOptions;
1124
+ type network_XRobotsTagResult = XRobotsTagResult;
1019
1125
  declare const network_X_CONTENT_TYPE_OPTIONS_HEADER: typeof X_CONTENT_TYPE_OPTIONS_HEADER;
1020
1126
  declare const network_analyzeEmailHeaders: typeof analyzeEmailHeaders;
1021
1127
  declare const network_assessContentTypeRisk: typeof assessContentTypeRisk;
@@ -1025,6 +1131,7 @@ declare const network_buildClientHints: typeof buildClientHints;
1025
1131
  declare const network_buildContentDisposition: typeof buildContentDisposition;
1026
1132
  declare const network_buildDnsQueryUrl: typeof buildDnsQueryUrl;
1027
1133
  declare const network_buildGeoUrl: typeof buildGeoUrl;
1134
+ declare const network_buildHsts: typeof buildHsts;
1028
1135
  declare const network_buildLinkHeader: typeof buildLinkHeader;
1029
1136
  declare const network_buildMapUrl: typeof buildMapUrl;
1030
1137
  declare const network_buildPermissionsPolicy: typeof buildPermissionsPolicy;
@@ -1035,6 +1142,7 @@ declare const network_buildReferrerPolicy: typeof buildReferrerPolicy;
1035
1142
  declare const network_buildRetryAfterHeader: typeof buildRetryAfterHeader;
1036
1143
  declare const network_buildVaryHeader: typeof buildVaryHeader;
1037
1144
  declare const network_buildXContentTypeOptionsHeader: typeof buildXContentTypeOptionsHeader;
1145
+ declare const network_buildXRobotsTag: typeof buildXRobotsTag;
1038
1146
  declare const network_checkSetCookieHeader: typeof checkSetCookieHeader;
1039
1147
  declare const network_countryCodeToFlag: typeof countryCodeToFlag;
1040
1148
  declare const network_extractMultipartBoundary: typeof extractMultipartBoundary;
@@ -1052,7 +1160,9 @@ declare const network_isValidIp: typeof isValidIp;
1052
1160
  declare const network_isValidIpv4: typeof isValidIpv4;
1053
1161
  declare const network_isValidIpv6: typeof isValidIpv6;
1054
1162
  declare const network_listCloseCodes: typeof listCloseCodes;
1163
+ declare const network_listOpcodes: typeof listOpcodes;
1055
1164
  declare const network_lookupCloseCode: typeof lookupCloseCode;
1165
+ declare const network_lookupOpcode: typeof lookupOpcode;
1056
1166
  declare const network_parseAcceptLanguage: typeof parseAcceptLanguage;
1057
1167
  declare const network_parseClientHintHeaders: typeof parseClientHintHeaders;
1058
1168
  declare const network_parseContentDisposition: typeof parseContentDisposition;
@@ -1060,6 +1170,7 @@ declare const network_parseContentRangeHeader: typeof parseContentRangeHeader;
1060
1170
  declare const network_parseDnsResponse: typeof parseDnsResponse;
1061
1171
  declare const network_parseGeoResponse: typeof parseGeoResponse;
1062
1172
  declare const network_parseHar: typeof parseHar;
1173
+ declare const network_parseHsts: typeof parseHsts;
1063
1174
  declare const network_parseIpv6Address: typeof parseIpv6Address;
1064
1175
  declare const network_parseMultipartFormData: typeof parseMultipartFormData;
1065
1176
  declare const network_parsePermissionsPolicy: typeof parsePermissionsPolicy;
@@ -1069,6 +1180,7 @@ declare const network_parseRetryAfterHeader: typeof parseRetryAfterHeader;
1069
1180
  declare const network_parseUserAgent: typeof parseUserAgent;
1070
1181
  declare const network_parseVaryHeader: typeof parseVaryHeader;
1071
1182
  declare const network_parseXContentTypeOptionsHeader: typeof parseXContentTypeOptionsHeader;
1183
+ declare const network_parseXRobotsTag: typeof parseXRobotsTag;
1072
1184
  declare const network_searchHeaders: typeof searchHeaders;
1073
1185
  declare const network_searchStatusCodes: typeof searchStatusCodes;
1074
1186
  declare const network_splitSitemap: typeof splitSitemap;
@@ -1081,7 +1193,7 @@ declare const network_validateManifest: typeof validateManifest;
1081
1193
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
1082
1194
  declare const network_validateSitemap: typeof validateSitemap;
1083
1195
  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 };
1196
+ 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, type network_OpcodeCategory as OpcodeCategory, type network_OpcodeInfo as OpcodeInfo, 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, type network_XRobotsTagFlag as XRobotsTagFlag, type network_XRobotsTagOptions as XRobotsTagOptions, type network_XRobotsTagResult as XRobotsTagResult, 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_buildXRobotsTag as buildXRobotsTag, 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_listOpcodes as listOpcodes, network_lookupCloseCode as lookupCloseCode, network_lookupOpcode as lookupOpcode, 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_parseXRobotsTag as parseXRobotsTag, 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
1197
  }
1086
1198
 
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 };
1199
+ export { type ParsedClientHint 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, type OpcodeCategory as Y, type OpcodeInfo as Z, PERMISSIONS_POLICY_FEATURES as _, type AcceptLanguageResult as a, buildXRobotsTag as a$, type ParsedDnsResult as a0, type ParsedGeoResult as a1, type PermissionsPolicyDirective as a2, type PermissionsPolicyFeatureInput as a3, type PermissionsPolicyResult as a4, type PreferParameter as a5, type PreferPreference as a6, type PreferResult as a7, type PriorityResult as a8, REFERRER_POLICY_VALUES as a9, type VaryHeaderEntry as aA, type VaryHeaderResult as aB, type XContentTypeOptionsHeader as aC, type XContentTypeOptionsParseResult as aD, type XRobotsTagFlag as aE, type XRobotsTagOptions as aF, type XRobotsTagResult as aG, X_CONTENT_TYPE_OPTIONS_HEADER as aH, analyzeEmailHeaders as aI, assessContentTypeRisk as aJ, buildAcceptLanguage as aK, buildCacheControl as aL, buildClientHints as aM, buildContentDisposition as aN, buildDnsQueryUrl as aO, buildGeoUrl as aP, buildHsts as aQ, buildLinkHeader as aR, buildMapUrl as aS, buildPermissionsPolicy as aT, buildPreferHeader as aU, buildPriorityHeader as aV, buildRangeHeader as aW, buildReferrerPolicy as aX, buildRetryAfterHeader as aY, buildVaryHeader as aZ, buildXContentTypeOptionsHeader as a_, type RangeEntry as aa, type RangeEntryInput as ab, type RangeHeaderResult as ac, type ReceivedHop as ad, type ReferrerPolicyEntry as ae, type ReferrerPolicyResult as af, type ReferrerPolicyValue as ag, type RetryAfterDateResult as ah, type RetryAfterResult as ai, type RetryAfterSecondsResult as aj, type RobotsGroup as ak, type RobotsIssue as al, type RobotsRule as am, type RobotsValidationResult as an, STATUS_CODES as ao, type SameSiteValue as ap, type SitemapIndexEntry as aq, type SitemapIssue as ar, type SitemapSplitFile as as, type SitemapUrlEntry as at, type SitemapValidationResult as au, type SplitSitemapOptions as av, type SplitSitemapResult as aw, type StatusCode as ax, type UaDeviceType as ay, type UserAgentInfo as az, type AuthResultEntry as b, checkSetCookieHeader as b0, countryCodeToFlag as b1, extractMultipartBoundary as b2, formatCoordinates as b3, formatTtl as b4, getByCategory as b5, getHeader as b6, getHeadersByCategory as b7, getStatusByCategory as b8, getStatusCode as b9, parseXContentTypeOptionsHeader as bA, parseXRobotsTag as bB, searchHeaders as bC, searchStatusCodes as bD, splitSitemap as bE, statusCodeToText as bF, typeNumberToLabel as bG, validateDomain as bH, validateHeaderName as bI, validateHeaderValue as bJ, validateManifest as bK, validateRobotsTxt as bL, validateSitemap as bM, isClientError as ba, isServerError as bb, isSuccess as bc, isValidIp as bd, isValidIpv4 as be, isValidIpv6 as bf, listCloseCodes as bg, listOpcodes as bh, lookupCloseCode as bi, lookupOpcode as bj, parseAcceptLanguage as bk, parseClientHintHeaders as bl, parseContentDisposition as bm, parseContentRangeHeader as bn, parseDnsResponse as bo, parseGeoResponse as bp, parseHar as bq, parseHsts as br, parseIpv6Address as bs, parseMultipartFormData as bt, parsePermissionsPolicy as bu, parsePreferHeader as bv, parsePriorityHeader as bw, parseRetryAfterHeader as bx, parseUserAgent as by, parseVaryHeader 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 };
@@ -1773,7 +1773,143 @@ function calculateMarkdownTaskListProgress(markdown) {
1773
1773
  });
1774
1774
  return { totalItems, completedItems, percentComplete, sections, items };
1775
1775
  }
1776
+ function _splitMarkdownTableRow(line) {
1777
+ const raw = [];
1778
+ let current = "";
1779
+ for (let i = 0; i < line.length; i++) {
1780
+ const ch = line[i];
1781
+ if (ch === "\\" && line[i + 1] === "|") {
1782
+ current += "\\|";
1783
+ i++;
1784
+ continue;
1785
+ }
1786
+ if (ch === "|") {
1787
+ raw.push(current);
1788
+ current = "";
1789
+ continue;
1790
+ }
1791
+ current += ch;
1792
+ }
1793
+ raw.push(current);
1794
+ const cells = raw.map((c) => c.trim());
1795
+ if (cells.length > 1 && cells[0] === "") cells.shift();
1796
+ if (cells.length > 1 && cells[cells.length - 1] === "") cells.pop();
1797
+ return cells;
1798
+ }
1799
+ function _isMarkdownTableDelimiterRow(line) {
1800
+ const trimmed = line.trim();
1801
+ if (trimmed === "" || !trimmed.includes("-")) return false;
1802
+ const cells = _splitMarkdownTableRow(trimmed);
1803
+ if (cells.length === 0) return false;
1804
+ return cells.every((c) => /^:?-+:?$/.test(c));
1805
+ }
1806
+ function _markdownTableCellAlignment(delimCell) {
1807
+ const left = delimCell.startsWith(":");
1808
+ const right = delimCell.endsWith(":");
1809
+ if (left && right) return "center";
1810
+ if (right) return "right";
1811
+ if (left) return "left";
1812
+ return "none";
1813
+ }
1814
+ function _padMarkdownTableCell(text, width, alignment) {
1815
+ const len = [...text].length;
1816
+ const diff = Math.max(0, width - len);
1817
+ if (alignment === "right") return " ".repeat(diff) + text;
1818
+ if (alignment === "center") {
1819
+ const left = Math.floor(diff / 2);
1820
+ const right = diff - left;
1821
+ return " ".repeat(left) + text + " ".repeat(right);
1822
+ }
1823
+ return text + " ".repeat(diff);
1824
+ }
1825
+ function _markdownTableDelimiterCell(width, alignment) {
1826
+ switch (alignment) {
1827
+ case "left":
1828
+ return ":" + "-".repeat(Math.max(1, width - 1));
1829
+ case "right":
1830
+ return "-".repeat(Math.max(1, width - 1)) + ":";
1831
+ case "center":
1832
+ return ":" + "-".repeat(Math.max(1, width - 2)) + ":";
1833
+ default:
1834
+ return "-".repeat(width);
1835
+ }
1836
+ }
1837
+ function alignMarkdownTables(markdown) {
1838
+ if (typeof markdown !== "string") return { error: "markdown must be a string" };
1839
+ const lines = markdown.replace(/\r\n/g, "\n").split("\n");
1840
+ const outputLines = [...lines];
1841
+ const tables = [];
1842
+ const warnings = [];
1843
+ let inFence = false;
1844
+ let fenceMarker = "";
1845
+ let i = 0;
1846
+ while (i < lines.length) {
1847
+ const line = lines[i];
1848
+ const fenceMatch = line.match(/^\s*(```+|~~~+)/);
1849
+ if (fenceMatch) {
1850
+ if (!inFence) {
1851
+ inFence = true;
1852
+ fenceMarker = fenceMatch[1][0];
1853
+ } else if (fenceMatch[1][0] === fenceMarker) {
1854
+ inFence = false;
1855
+ }
1856
+ i++;
1857
+ continue;
1858
+ }
1859
+ if (inFence) {
1860
+ i++;
1861
+ continue;
1862
+ }
1863
+ const nextLine = lines[i + 1];
1864
+ if (line.includes("|") && nextLine !== void 0 && _isMarkdownTableDelimiterRow(nextLine)) {
1865
+ const headerCells = _splitMarkdownTableRow(line);
1866
+ const delimCells = _splitMarkdownTableRow(nextLine);
1867
+ if (headerCells.length > 0 && headerCells.length === delimCells.length) {
1868
+ const columnCount = headerCells.length;
1869
+ const alignments = delimCells.map(_markdownTableCellAlignment);
1870
+ let j = i + 2;
1871
+ const bodyRows = [];
1872
+ while (j < lines.length && lines[j].trim() !== "" && lines[j].includes("|")) {
1873
+ bodyRows.push(_splitMarkdownTableRow(lines[j]));
1874
+ j++;
1875
+ }
1876
+ const normalizedBody = [];
1877
+ for (const row of bodyRows) {
1878
+ if (row.length !== columnCount) {
1879
+ 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.`);
1880
+ }
1881
+ normalizedBody.push(Array.from({ length: columnCount }, (_, c) => row[c] ?? ""));
1882
+ }
1883
+ const allRows = [headerCells, ...normalizedBody];
1884
+ const widths = Array.from(
1885
+ { length: columnCount },
1886
+ (_, c) => Math.max(3, ...allRows.map((r) => [...r[c] ?? ""].length))
1887
+ );
1888
+ const formattedHeader = "| " + headerCells.map((c, idx) => _padMarkdownTableCell(c, widths[idx], alignments[idx])).join(" | ") + " |";
1889
+ const formattedDelim = "| " + widths.map((w, idx) => _markdownTableDelimiterCell(w, alignments[idx])).join(" | ") + " |";
1890
+ const formattedBody = normalizedBody.map((row) => "| " + row.map((c, idx) => _padMarkdownTableCell(c, widths[idx], alignments[idx])).join(" | ") + " |");
1891
+ const formattedLines = [formattedHeader, formattedDelim, ...formattedBody];
1892
+ for (let k = 0; k < formattedLines.length; k++) {
1893
+ outputLines[i + k] = formattedLines[k];
1894
+ }
1895
+ tables.push({
1896
+ startLine: i + 1,
1897
+ endLine: i + formattedLines.length,
1898
+ columnCount,
1899
+ rowCount: normalizedBody.length,
1900
+ alignments
1901
+ });
1902
+ i = j;
1903
+ continue;
1904
+ }
1905
+ }
1906
+ i++;
1907
+ }
1908
+ if (tables.length === 0) return { error: "No Markdown tables found" };
1909
+ return { output: outputLines.join("\n"), tables, warnings };
1910
+ }
1776
1911
 
1912
+ exports.alignMarkdownTables = alignMarkdownTables;
1777
1913
  exports.analyzeCaptionSpeed = analyzeCaptionSpeed;
1778
1914
  exports.calculateMarkdownTaskListProgress = calculateMarkdownTaskListProgress;
1779
1915
  exports.convertSubtitles = convertSubtitles;
@@ -1 +1 @@
1
- export { C as CaptionSpeedCue, a as CaptionSpeedResult, b as ConvertedSubtitles, c as CsvColumnType, e as CsvColumnTypeInfo, f as CsvColumnTypeOptions, g as CsvColumnTypeResult, h as CsvDuplicateGroup, i as CsvDuplicateOptions, j as CsvDuplicateResult, k as CsvParseResult, l as CsvToSqlOptions, m as CsvToSqlResult, E as EnvDiffError, n as EnvDiffResult, o as EnvEntry, p as EnvParseResult, F as FrontMatterError, q as FrontMatterResult, I as IniSection, M as MarkdownTaskListItem, r as MarkdownTaskListProgressResult, s as MarkdownTaskListSectionSummary, t as MarkdownTocEntry, u as MarkdownTocOptions, v as MarkdownTocResult, N as NdjsonDedupeResult, w as NdjsonLineResult, x as NdjsonValidateResult, P as ParseOptions, y as ParsedIni, z as ParsedSubtitles, S as SubtitleCue, A as SubtitleFormat, T as TomlFormatResult, V as ValidationResult, X as XmlFormatResult, B as XmlToJsonOptions, Y as YamlAnchorInfo, D as YamlAnchorResolveError, G as YamlAnchorResolveResult, H as analyzeCaptionSpeed, J as calculateMarkdownTaskListProgress, K as convertSubtitles, L as csvToJson, O as csvToSqlInsert, Q as dedupeNdjson, R as detectDelimiter, U as detectSubtitleFormat, W as diffEnvExample, Z as envToExport, _ as envToJson, $ as findCsvDuplicateRows, a0 as formatNdjson, a1 as formatSubtitleTimestamp, a2 as formatToml, a3 as formatXml, a4 as generateMarkdownToc, a5 as getSection, a6 as getSectionNames, a7 as getTomlStats, a8 as getXmlStats, a9 as getYamlStats, aa as inferCsvColumnTypes, ab as iniToJson, ac as jsonArrayToNdjson, ad as jsonToIni, ae as jsonToToml, af as jsonToXml, ag as minifyNdjson, ah as minifyToml, ai as minifyXml, aj as ndjsonToJsonArray, ak as parseCsv, al as parseEnv, am as parseFrontMatter, an as parseIni, ao as parseSubtitleTimestamp, ap as parseSubtitles, aq as parseXmlToObject, ar as resolveYamlAnchors, as as serializeSubtitles, at as shiftSubtitles, au as stringifyIni, av as toCsvString, aw as tomlToJson, ax as validateEnvKey, ay as validateIni, az as validateNdjson, aA as validateToml, aB as validateXml, aC as validateYaml, aD as xmlToJson } from '../data-vxXrBlWh.cjs';
1
+ export { C as CaptionSpeedCue, a as CaptionSpeedResult, b as ConvertedSubtitles, c as CsvColumnType, e as CsvColumnTypeInfo, f as CsvColumnTypeOptions, g as CsvColumnTypeResult, h as CsvDuplicateGroup, i as CsvDuplicateOptions, j as CsvDuplicateResult, k as CsvParseResult, l as CsvToSqlOptions, m as CsvToSqlResult, E as EnvDiffError, n as EnvDiffResult, o as EnvEntry, p as EnvParseResult, F as FrontMatterError, q as FrontMatterResult, I as IniSection, M as MarkdownTableAlignResult, r as MarkdownTableColumnAlignment, s as MarkdownTableInfo, t as MarkdownTaskListItem, u as MarkdownTaskListProgressResult, v as MarkdownTaskListSectionSummary, w as MarkdownTocEntry, x as MarkdownTocOptions, y as MarkdownTocResult, N as NdjsonDedupeResult, z as NdjsonLineResult, A as NdjsonValidateResult, P as ParseOptions, B as ParsedIni, D as ParsedSubtitles, S as SubtitleCue, G as SubtitleFormat, T as TomlFormatResult, V as ValidationResult, X as XmlFormatResult, H as XmlToJsonOptions, Y as YamlAnchorInfo, J as YamlAnchorResolveError, K as YamlAnchorResolveResult, L as alignMarkdownTables, O as analyzeCaptionSpeed, Q as calculateMarkdownTaskListProgress, R as convertSubtitles, U as csvToJson, W as csvToSqlInsert, Z as dedupeNdjson, _ as detectDelimiter, $ as detectSubtitleFormat, a0 as diffEnvExample, a1 as envToExport, a2 as envToJson, a3 as findCsvDuplicateRows, a4 as formatNdjson, a5 as formatSubtitleTimestamp, a6 as formatToml, a7 as formatXml, a8 as generateMarkdownToc, a9 as getSection, aa as getSectionNames, ab as getTomlStats, ac as getXmlStats, ad as getYamlStats, ae as inferCsvColumnTypes, af as iniToJson, ag as jsonArrayToNdjson, ah as jsonToIni, ai as jsonToToml, aj as jsonToXml, ak as minifyNdjson, al as minifyToml, am as minifyXml, an as ndjsonToJsonArray, ao as parseCsv, ap as parseEnv, aq as parseFrontMatter, ar as parseIni, as as parseSubtitleTimestamp, at as parseSubtitles, au as parseXmlToObject, av as resolveYamlAnchors, aw as serializeSubtitles, ax as shiftSubtitles, ay as stringifyIni, az as toCsvString, aA as tomlToJson, aB as validateEnvKey, aC as validateIni, aD as validateNdjson, aE as validateToml, aF as validateXml, aG as validateYaml, aH as xmlToJson } from '../data-26TALa9U.cjs';