@utilix-tech/sdk 0.45.0 → 0.47.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +36 -9
  3. package/dist/{chunk-L6V4W4SU.js → chunk-226EH3ZI.js} +87 -1
  4. package/dist/{chunk-DFLHX4NW.js → chunk-KMQHBUYO.js} +55 -1
  5. package/dist/{chunk-F2CEN226.js → chunk-P7TXG7CI.js} +127 -1
  6. package/dist/{chunk-7PEKYLRB.js → chunk-S3OA5VCX.js} +50 -1
  7. package/dist/index.cjs +315 -0
  8. package/dist/index.d.cts +4 -4
  9. package/dist/index.d.ts +4 -4
  10. package/dist/index.js +4 -4
  11. package/dist/{media-fD8dJ5qR.d.cts → media-BUvwm4wU.d.cts} +27 -2
  12. package/dist/{media-fD8dJ5qR.d.ts → media-BUvwm4wU.d.ts} +27 -2
  13. package/dist/{network-Bzm1tjMA.d.cts → network-BG0XDx5W.d.cts} +40 -2
  14. package/dist/{network-Bzm1tjMA.d.ts → network-BG0XDx5W.d.ts} +40 -2
  15. package/dist/{text-kHkT9VtT.d.cts → text-DWUcY8H1.d.cts} +34 -2
  16. package/dist/{text-kHkT9VtT.d.ts → text-DWUcY8H1.d.ts} +34 -2
  17. package/dist/tools/media.cjs +86 -0
  18. package/dist/tools/media.d.cts +1 -1
  19. package/dist/tools/media.d.ts +1 -1
  20. package/dist/tools/media.js +1 -1
  21. package/dist/tools/network.cjs +49 -0
  22. package/dist/tools/network.d.cts +1 -1
  23. package/dist/tools/network.d.ts +1 -1
  24. package/dist/tools/network.js +1 -1
  25. package/dist/tools/text.cjs +126 -0
  26. package/dist/tools/text.d.cts +1 -1
  27. package/dist/tools/text.d.ts +1 -1
  28. package/dist/tools/text.js +1 -1
  29. package/dist/tools/units.cjs +54 -0
  30. package/dist/tools/units.d.cts +1 -1
  31. package/dist/tools/units.d.ts +1 -1
  32. package/dist/tools/units.js +1 -1
  33. package/dist/{units-DWRmbS_a.d.cts → units-DU4Pisfx.d.cts} +36 -2
  34. package/dist/{units-DWRmbS_a.d.ts → units-DU4Pisfx.d.ts} +36 -2
  35. package/package.json +1 -1
@@ -643,6 +643,39 @@ interface ClientHintsParseResult {
643
643
  declare function parseClientHintHeaders(rawHeaders: string): ClientHintsParseResult | {
644
644
  error: string;
645
645
  };
646
+ interface ContentDispositionBuildOptions {
647
+ type?: 'inline' | 'attachment';
648
+ filename?: string;
649
+ }
650
+ interface ContentDispositionBuildResult {
651
+ header: string;
652
+ type: string;
653
+ filename?: string;
654
+ filenameEncoded: boolean;
655
+ }
656
+ interface ContentDispositionParseResult {
657
+ type: string;
658
+ filename?: string;
659
+ filenameIsExtended: boolean;
660
+ params: Record<string, string>;
661
+ }
662
+ /**
663
+ * Build a `Content-Disposition` response-header value for a file download
664
+ * or inline display. A filename containing non-ASCII characters gets an
665
+ * ASCII-sanitized `filename` fallback plus an RFC 5987 `filename*` extended
666
+ * parameter carrying the exact UTF-8 encoded name.
667
+ */
668
+ declare function buildContentDisposition(options?: ContentDispositionBuildOptions): ContentDispositionBuildResult | {
669
+ error: string;
670
+ };
671
+ /**
672
+ * Parse a `Content-Disposition` header value into its disposition type,
673
+ * filename (decoding an RFC 5987 `filename*` parameter in preference to a
674
+ * plain `filename`, if both are present), and raw parameters.
675
+ */
676
+ declare function parseContentDisposition(header: string): ContentDispositionParseResult | {
677
+ error: string;
678
+ };
646
679
 
647
680
  type network_AuthResultEntry = AuthResultEntry;
648
681
  type network_BuildRangeHeaderOptions = BuildRangeHeaderOptions;
@@ -654,6 +687,9 @@ type network_ClientHintDef = ClientHintDef;
654
687
  type network_ClientHintValueType = ClientHintValueType;
655
688
  type network_ClientHintsBuildResult = ClientHintsBuildResult;
656
689
  type network_ClientHintsParseResult = ClientHintsParseResult;
690
+ type network_ContentDispositionBuildOptions = ContentDispositionBuildOptions;
691
+ type network_ContentDispositionBuildResult = ContentDispositionBuildResult;
692
+ type network_ContentDispositionParseResult = ContentDispositionParseResult;
657
693
  type network_ContentRangeResult = ContentRangeResult;
658
694
  type network_CookieAttributes = CookieAttributes;
659
695
  type network_CookieCheckResult = CookieCheckResult;
@@ -713,6 +749,7 @@ type network_VaryHeaderResult = VaryHeaderResult;
713
749
  declare const network_analyzeEmailHeaders: typeof analyzeEmailHeaders;
714
750
  declare const network_buildCacheControl: typeof buildCacheControl;
715
751
  declare const network_buildClientHints: typeof buildClientHints;
752
+ declare const network_buildContentDisposition: typeof buildContentDisposition;
716
753
  declare const network_buildDnsQueryUrl: typeof buildDnsQueryUrl;
717
754
  declare const network_buildGeoUrl: typeof buildGeoUrl;
718
755
  declare const network_buildLinkHeader: typeof buildLinkHeader;
@@ -737,6 +774,7 @@ declare const network_isValidIp: typeof isValidIp;
737
774
  declare const network_isValidIpv4: typeof isValidIpv4;
738
775
  declare const network_isValidIpv6: typeof isValidIpv6;
739
776
  declare const network_parseClientHintHeaders: typeof parseClientHintHeaders;
777
+ declare const network_parseContentDisposition: typeof parseContentDisposition;
740
778
  declare const network_parseContentRangeHeader: typeof parseContentRangeHeader;
741
779
  declare const network_parseDnsResponse: typeof parseDnsResponse;
742
780
  declare const network_parseGeoResponse: typeof parseGeoResponse;
@@ -756,7 +794,7 @@ declare const network_validateManifest: typeof validateManifest;
756
794
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
757
795
  declare const network_validateSitemap: typeof validateSitemap;
758
796
  declare namespace network {
759
- export { 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_ContentRangeResult as ContentRangeResult, 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, 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, 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_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_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, 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, network_analyzeEmailHeaders as analyzeEmailHeaders, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, 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_parseClientHintHeaders as parseClientHintHeaders, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, 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 };
797
+ export { 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_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, 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, 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, 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_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_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, 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, network_analyzeEmailHeaders as analyzeEmailHeaders, 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_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, 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_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_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, 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 };
760
798
  }
761
799
 
762
- export { type RobotsIssue as $, type AuthResultEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type ManifestValidationResult as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type ParsedClientHint as J, type ParsedDnsResult as K, LINK_REL_VALUES as L, type ManifestIconInfo as M, type ParsedGeoResult as N, type PermissionsPolicyDirective as O, PERMISSIONS_POLICY_FEATURES as P, type PermissionsPolicyFeatureInput as Q, type PermissionsPolicyResult as R, REFERRER_POLICY_VALUES as S, type RangeEntry as T, type RangeEntryInput as U, type RangeHeaderResult as V, type ReceivedHop as W, type ReferrerPolicyEntry as X, type ReferrerPolicyResult as Y, type ReferrerPolicyValue as Z, type RobotsGroup as _, type CacheControlDirective as a, type RobotsRule as a0, type RobotsValidationResult as a1, STATUS_CODES as a2, type SameSiteValue as a3, type SitemapIndexEntry as a4, type SitemapIssue as a5, type SitemapUrlEntry as a6, type SitemapValidationResult as a7, type StatusCode as a8, type UaDeviceType as a9, isValidIp as aA, isValidIpv4 as aB, isValidIpv6 as aC, parseClientHintHeaders as aD, parseContentRangeHeader as aE, parseDnsResponse as aF, parseGeoResponse as aG, parseHar as aH, parseIpv6Address as aI, parsePermissionsPolicy as aJ, parseUserAgent as aK, parseVaryHeader as aL, searchHeaders as aM, searchStatusCodes as aN, statusCodeToText as aO, typeNumberToLabel as aP, validateDomain as aQ, validateHeaderName as aR, validateHeaderValue as aS, validateManifest as aT, validateRobotsTxt as aU, validateSitemap as aV, type UserAgentInfo as aa, type VaryHeaderEntry as ab, type VaryHeaderResult as ac, analyzeEmailHeaders as ad, buildCacheControl as ae, buildClientHints as af, buildDnsQueryUrl as ag, buildGeoUrl as ah, buildLinkHeader as ai, buildMapUrl as aj, buildPermissionsPolicy as ak, buildRangeHeader as al, buildReferrerPolicy as am, buildVaryHeader as an, checkSetCookieHeader as ao, countryCodeToFlag as ap, formatCoordinates as aq, formatTtl as ar, getByCategory as as, getHeader as at, getHeadersByCategory as au, getStatusByCategory as av, getStatusCode as aw, isClientError as ax, isServerError as ay, isSuccess as az, type CacheControlOptions as b, type CacheControlResult as c, type ClientHintDef as d, type ClientHintValueType as e, type ClientHintsBuildResult as f, type ClientHintsParseResult as g, type ContentRangeResult as h, type CookieAttributes as i, type CookieCheckResult as j, type DnsRecord as k, type DnsRecordType as l, type DnsResponse as m, network as n, type EmailHeaderField as o, type HarEntry as p, type HarParseResult as q, type HarSummary as r, type HeaderCategory as s, type HttpHeader as t, type Ipv6ParseResult as u, type LinkHeaderEntry as v, type LinkHeaderEntryInput as w, type LinkHeaderResult as x, type LinkRel as y, type ManifestIssue as z };
800
+ export { type ReferrerPolicyResult as $, type AuthResultEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type LinkHeaderResult as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type LinkRel as J, type ManifestIssue as K, LINK_REL_VALUES as L, type ManifestIconInfo as M, type ManifestValidationResult as N, type ParsedClientHint as O, PERMISSIONS_POLICY_FEATURES as P, type ParsedDnsResult as Q, type ParsedGeoResult as R, type PermissionsPolicyDirective as S, type PermissionsPolicyFeatureInput as T, type PermissionsPolicyResult as U, REFERRER_POLICY_VALUES as V, type RangeEntry as W, type RangeEntryInput as X, type RangeHeaderResult as Y, type ReceivedHop as Z, type ReferrerPolicyEntry as _, type CacheControlDirective as a, type ReferrerPolicyValue as a0, type RobotsGroup as a1, type RobotsIssue as a2, type RobotsRule as a3, type RobotsValidationResult as a4, STATUS_CODES as a5, type SameSiteValue as a6, type SitemapIndexEntry as a7, type SitemapIssue as a8, type SitemapUrlEntry as a9, getStatusCode as aA, isClientError as aB, isServerError as aC, isSuccess as aD, isValidIp as aE, isValidIpv4 as aF, isValidIpv6 as aG, parseClientHintHeaders as aH, parseContentDisposition as aI, parseContentRangeHeader as aJ, parseDnsResponse as aK, parseGeoResponse as aL, parseHar as aM, parseIpv6Address as aN, parsePermissionsPolicy as aO, parseUserAgent as aP, parseVaryHeader as aQ, searchHeaders as aR, searchStatusCodes as aS, statusCodeToText as aT, typeNumberToLabel as aU, validateDomain as aV, validateHeaderName as aW, validateHeaderValue as aX, validateManifest as aY, validateRobotsTxt as aZ, validateSitemap as a_, type SitemapValidationResult as aa, type StatusCode as ab, type UaDeviceType as ac, type UserAgentInfo as ad, type VaryHeaderEntry as ae, type VaryHeaderResult as af, analyzeEmailHeaders as ag, buildCacheControl as ah, buildClientHints as ai, buildContentDisposition as aj, buildDnsQueryUrl as ak, buildGeoUrl as al, buildLinkHeader as am, buildMapUrl as an, buildPermissionsPolicy as ao, buildRangeHeader as ap, buildReferrerPolicy as aq, buildVaryHeader as ar, checkSetCookieHeader as as, countryCodeToFlag as at, formatCoordinates as au, formatTtl as av, getByCategory as aw, getHeader as ax, getHeadersByCategory as ay, getStatusByCategory as az, type CacheControlOptions as b, type CacheControlResult as c, type ClientHintDef as d, type ClientHintValueType as e, type ClientHintsBuildResult as f, type ClientHintsParseResult as g, type ContentDispositionBuildOptions as h, type ContentDispositionBuildResult as i, type ContentDispositionParseResult as j, type ContentRangeResult as k, type CookieAttributes as l, type CookieCheckResult as m, network as n, type DnsRecord as o, type DnsRecordType as p, type DnsResponse as q, type EmailHeaderField as r, type HarEntry as s, type HarParseResult as t, type HarSummary as u, type HeaderCategory as v, type HttpHeader as w, type Ipv6ParseResult as x, type LinkHeaderEntry as y, type LinkHeaderEntryInput as z };
@@ -643,6 +643,39 @@ interface ClientHintsParseResult {
643
643
  declare function parseClientHintHeaders(rawHeaders: string): ClientHintsParseResult | {
644
644
  error: string;
645
645
  };
646
+ interface ContentDispositionBuildOptions {
647
+ type?: 'inline' | 'attachment';
648
+ filename?: string;
649
+ }
650
+ interface ContentDispositionBuildResult {
651
+ header: string;
652
+ type: string;
653
+ filename?: string;
654
+ filenameEncoded: boolean;
655
+ }
656
+ interface ContentDispositionParseResult {
657
+ type: string;
658
+ filename?: string;
659
+ filenameIsExtended: boolean;
660
+ params: Record<string, string>;
661
+ }
662
+ /**
663
+ * Build a `Content-Disposition` response-header value for a file download
664
+ * or inline display. A filename containing non-ASCII characters gets an
665
+ * ASCII-sanitized `filename` fallback plus an RFC 5987 `filename*` extended
666
+ * parameter carrying the exact UTF-8 encoded name.
667
+ */
668
+ declare function buildContentDisposition(options?: ContentDispositionBuildOptions): ContentDispositionBuildResult | {
669
+ error: string;
670
+ };
671
+ /**
672
+ * Parse a `Content-Disposition` header value into its disposition type,
673
+ * filename (decoding an RFC 5987 `filename*` parameter in preference to a
674
+ * plain `filename`, if both are present), and raw parameters.
675
+ */
676
+ declare function parseContentDisposition(header: string): ContentDispositionParseResult | {
677
+ error: string;
678
+ };
646
679
 
647
680
  type network_AuthResultEntry = AuthResultEntry;
648
681
  type network_BuildRangeHeaderOptions = BuildRangeHeaderOptions;
@@ -654,6 +687,9 @@ type network_ClientHintDef = ClientHintDef;
654
687
  type network_ClientHintValueType = ClientHintValueType;
655
688
  type network_ClientHintsBuildResult = ClientHintsBuildResult;
656
689
  type network_ClientHintsParseResult = ClientHintsParseResult;
690
+ type network_ContentDispositionBuildOptions = ContentDispositionBuildOptions;
691
+ type network_ContentDispositionBuildResult = ContentDispositionBuildResult;
692
+ type network_ContentDispositionParseResult = ContentDispositionParseResult;
657
693
  type network_ContentRangeResult = ContentRangeResult;
658
694
  type network_CookieAttributes = CookieAttributes;
659
695
  type network_CookieCheckResult = CookieCheckResult;
@@ -713,6 +749,7 @@ type network_VaryHeaderResult = VaryHeaderResult;
713
749
  declare const network_analyzeEmailHeaders: typeof analyzeEmailHeaders;
714
750
  declare const network_buildCacheControl: typeof buildCacheControl;
715
751
  declare const network_buildClientHints: typeof buildClientHints;
752
+ declare const network_buildContentDisposition: typeof buildContentDisposition;
716
753
  declare const network_buildDnsQueryUrl: typeof buildDnsQueryUrl;
717
754
  declare const network_buildGeoUrl: typeof buildGeoUrl;
718
755
  declare const network_buildLinkHeader: typeof buildLinkHeader;
@@ -737,6 +774,7 @@ declare const network_isValidIp: typeof isValidIp;
737
774
  declare const network_isValidIpv4: typeof isValidIpv4;
738
775
  declare const network_isValidIpv6: typeof isValidIpv6;
739
776
  declare const network_parseClientHintHeaders: typeof parseClientHintHeaders;
777
+ declare const network_parseContentDisposition: typeof parseContentDisposition;
740
778
  declare const network_parseContentRangeHeader: typeof parseContentRangeHeader;
741
779
  declare const network_parseDnsResponse: typeof parseDnsResponse;
742
780
  declare const network_parseGeoResponse: typeof parseGeoResponse;
@@ -756,7 +794,7 @@ declare const network_validateManifest: typeof validateManifest;
756
794
  declare const network_validateRobotsTxt: typeof validateRobotsTxt;
757
795
  declare const network_validateSitemap: typeof validateSitemap;
758
796
  declare namespace network {
759
- export { 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_ContentRangeResult as ContentRangeResult, 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, 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, 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_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_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, 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, network_analyzeEmailHeaders as analyzeEmailHeaders, network_buildCacheControl as buildCacheControl, network_buildClientHints as buildClientHints, network_buildDnsQueryUrl as buildDnsQueryUrl, network_buildGeoUrl as buildGeoUrl, network_buildLinkHeader as buildLinkHeader, network_buildMapUrl as buildMapUrl, network_buildPermissionsPolicy as buildPermissionsPolicy, network_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, 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_parseClientHintHeaders as parseClientHintHeaders, network_parseContentRangeHeader as parseContentRangeHeader, network_parseDnsResponse as parseDnsResponse, network_parseGeoResponse as parseGeoResponse, network_parseHar as parseHar, network_parseIpv6Address as parseIpv6Address, network_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, 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 };
797
+ export { 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_ContentDispositionBuildOptions as ContentDispositionBuildOptions, type network_ContentDispositionBuildResult as ContentDispositionBuildResult, type network_ContentDispositionParseResult as ContentDispositionParseResult, type network_ContentRangeResult as ContentRangeResult, 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, 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, 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_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_SitemapUrlEntry as SitemapUrlEntry, type network_SitemapValidationResult as SitemapValidationResult, 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, network_analyzeEmailHeaders as analyzeEmailHeaders, 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_buildRangeHeader as buildRangeHeader, network_buildReferrerPolicy as buildReferrerPolicy, network_buildVaryHeader as buildVaryHeader, network_checkSetCookieHeader as checkSetCookieHeader, network_countryCodeToFlag as countryCodeToFlag, 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_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_parsePermissionsPolicy as parsePermissionsPolicy, network_parseUserAgent as parseUserAgent, network_parseVaryHeader as parseVaryHeader, network_searchHeaders as searchHeaders, network_searchStatusCodes as searchStatusCodes, 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 };
760
798
  }
761
799
 
762
- export { type RobotsIssue as $, type AuthResultEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type ManifestValidationResult as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type ParsedClientHint as J, type ParsedDnsResult as K, LINK_REL_VALUES as L, type ManifestIconInfo as M, type ParsedGeoResult as N, type PermissionsPolicyDirective as O, PERMISSIONS_POLICY_FEATURES as P, type PermissionsPolicyFeatureInput as Q, type PermissionsPolicyResult as R, REFERRER_POLICY_VALUES as S, type RangeEntry as T, type RangeEntryInput as U, type RangeHeaderResult as V, type ReceivedHop as W, type ReferrerPolicyEntry as X, type ReferrerPolicyResult as Y, type ReferrerPolicyValue as Z, type RobotsGroup as _, type CacheControlDirective as a, type RobotsRule as a0, type RobotsValidationResult as a1, STATUS_CODES as a2, type SameSiteValue as a3, type SitemapIndexEntry as a4, type SitemapIssue as a5, type SitemapUrlEntry as a6, type SitemapValidationResult as a7, type StatusCode as a8, type UaDeviceType as a9, isValidIp as aA, isValidIpv4 as aB, isValidIpv6 as aC, parseClientHintHeaders as aD, parseContentRangeHeader as aE, parseDnsResponse as aF, parseGeoResponse as aG, parseHar as aH, parseIpv6Address as aI, parsePermissionsPolicy as aJ, parseUserAgent as aK, parseVaryHeader as aL, searchHeaders as aM, searchStatusCodes as aN, statusCodeToText as aO, typeNumberToLabel as aP, validateDomain as aQ, validateHeaderName as aR, validateHeaderValue as aS, validateManifest as aT, validateRobotsTxt as aU, validateSitemap as aV, type UserAgentInfo as aa, type VaryHeaderEntry as ab, type VaryHeaderResult as ac, analyzeEmailHeaders as ad, buildCacheControl as ae, buildClientHints as af, buildDnsQueryUrl as ag, buildGeoUrl as ah, buildLinkHeader as ai, buildMapUrl as aj, buildPermissionsPolicy as ak, buildRangeHeader as al, buildReferrerPolicy as am, buildVaryHeader as an, checkSetCookieHeader as ao, countryCodeToFlag as ap, formatCoordinates as aq, formatTtl as ar, getByCategory as as, getHeader as at, getHeadersByCategory as au, getStatusByCategory as av, getStatusCode as aw, isClientError as ax, isServerError as ay, isSuccess as az, type CacheControlOptions as b, type CacheControlResult as c, type ClientHintDef as d, type ClientHintValueType as e, type ClientHintsBuildResult as f, type ClientHintsParseResult as g, type ContentRangeResult as h, type CookieAttributes as i, type CookieCheckResult as j, type DnsRecord as k, type DnsRecordType as l, type DnsResponse as m, network as n, type EmailHeaderField as o, type HarEntry as p, type HarParseResult as q, type HarSummary as r, type HeaderCategory as s, type HttpHeader as t, type Ipv6ParseResult as u, type LinkHeaderEntry as v, type LinkHeaderEntryInput as w, type LinkHeaderResult as x, type LinkRel as y, type ManifestIssue as z };
800
+ export { type ReferrerPolicyResult as $, type AuthResultEntry as A, type BuildRangeHeaderOptions as B, CLIENT_HINTS as C, DNS_RECORD_TYPES as D, type EmailHeaderAnalysis as E, type LinkHeaderResult as F, type GeoResult as G, HTTP_HEADERS as H, type Ipv6AddressType as I, type LinkRel as J, type ManifestIssue as K, LINK_REL_VALUES as L, type ManifestIconInfo as M, type ManifestValidationResult as N, type ParsedClientHint as O, PERMISSIONS_POLICY_FEATURES as P, type ParsedDnsResult as Q, type ParsedGeoResult as R, type PermissionsPolicyDirective as S, type PermissionsPolicyFeatureInput as T, type PermissionsPolicyResult as U, REFERRER_POLICY_VALUES as V, type RangeEntry as W, type RangeEntryInput as X, type RangeHeaderResult as Y, type ReceivedHop as Z, type ReferrerPolicyEntry as _, type CacheControlDirective as a, type ReferrerPolicyValue as a0, type RobotsGroup as a1, type RobotsIssue as a2, type RobotsRule as a3, type RobotsValidationResult as a4, STATUS_CODES as a5, type SameSiteValue as a6, type SitemapIndexEntry as a7, type SitemapIssue as a8, type SitemapUrlEntry as a9, getStatusCode as aA, isClientError as aB, isServerError as aC, isSuccess as aD, isValidIp as aE, isValidIpv4 as aF, isValidIpv6 as aG, parseClientHintHeaders as aH, parseContentDisposition as aI, parseContentRangeHeader as aJ, parseDnsResponse as aK, parseGeoResponse as aL, parseHar as aM, parseIpv6Address as aN, parsePermissionsPolicy as aO, parseUserAgent as aP, parseVaryHeader as aQ, searchHeaders as aR, searchStatusCodes as aS, statusCodeToText as aT, typeNumberToLabel as aU, validateDomain as aV, validateHeaderName as aW, validateHeaderValue as aX, validateManifest as aY, validateRobotsTxt as aZ, validateSitemap as a_, type SitemapValidationResult as aa, type StatusCode as ab, type UaDeviceType as ac, type UserAgentInfo as ad, type VaryHeaderEntry as ae, type VaryHeaderResult as af, analyzeEmailHeaders as ag, buildCacheControl as ah, buildClientHints as ai, buildContentDisposition as aj, buildDnsQueryUrl as ak, buildGeoUrl as al, buildLinkHeader as am, buildMapUrl as an, buildPermissionsPolicy as ao, buildRangeHeader as ap, buildReferrerPolicy as aq, buildVaryHeader as ar, checkSetCookieHeader as as, countryCodeToFlag as at, formatCoordinates as au, formatTtl as av, getByCategory as aw, getHeader as ax, getHeadersByCategory as ay, getStatusByCategory as az, type CacheControlOptions as b, type CacheControlResult as c, type ClientHintDef as d, type ClientHintValueType as e, type ClientHintsBuildResult as f, type ClientHintsParseResult as g, type ContentDispositionBuildOptions as h, type ContentDispositionBuildResult as i, type ContentDispositionParseResult as j, type ContentRangeResult as k, type CookieAttributes as l, type CookieCheckResult as m, network as n, type DnsRecord as o, type DnsRecordType as p, type DnsResponse as q, type EmailHeaderField as r, type HarEntry as s, type HarParseResult as t, type HarSummary as u, type HeaderCategory as v, type HttpHeader as w, type Ipv6ParseResult as x, type LinkHeaderEntry as y, type LinkHeaderEntryInput as z };
@@ -23,6 +23,7 @@
23
23
  * - readability-score: scoreReadability
24
24
  * - filler-word-detector: detectFillerWords
25
25
  * - sentence-length-distribution: analyzeSentenceLengths
26
+ * - keyword-density-analyzer: analyzeKeywordDensity
26
27
  * - emoji-lookup : searchEmoji, getEmojiByShortcode, getEmojiByChar, getEmojiByCategory, getEmojiCategories, EMOJI_TABLE
27
28
  */
28
29
  interface WordCountResult {
@@ -357,6 +358,33 @@ interface SentenceLengthDistribution {
357
358
  * (e.g. "Dr.") as sentence boundaries.
358
359
  */
359
360
  declare function analyzeSentenceLengths(text: string): SentenceLengthDistribution;
361
+ interface KeywordDensityEntry {
362
+ keyword: string;
363
+ count: number;
364
+ density: number;
365
+ }
366
+ interface KeywordDensityResult {
367
+ totalWords: number;
368
+ uniqueKeywords: number;
369
+ ngramSize: number;
370
+ keywords: KeywordDensityEntry[];
371
+ }
372
+ interface KeywordDensityOptions {
373
+ topN?: number;
374
+ minWordLength?: number;
375
+ ngramSize?: number;
376
+ }
377
+ /**
378
+ * Count keyword/phrase frequency and density (occurrences per 100 words)
379
+ * across a block of text, the way an SEO keyword-density checker does.
380
+ * With the default ngramSize of 1, common English stopwords and words
381
+ * shorter than minWordLength are excluded; for ngramSize 2 or 3 (phrases),
382
+ * stopwords are kept since useful phrases often contain them, but every
383
+ * word in the phrase must still meet minWordLength.
384
+ */
385
+ declare function analyzeKeywordDensity(text: string, options?: KeywordDensityOptions): KeywordDensityResult | {
386
+ error: string;
387
+ };
360
388
  interface EmojiEntry {
361
389
  emoji: string;
362
390
  name: string;
@@ -401,6 +429,9 @@ type text_EscapeMode = EscapeMode;
401
429
  type text_FillerCategory = FillerCategory;
402
430
  type text_FillerMatch = FillerMatch;
403
431
  type text_FillerWordResult = FillerWordResult;
432
+ type text_KeywordDensityEntry = KeywordDensityEntry;
433
+ type text_KeywordDensityOptions = KeywordDensityOptions;
434
+ type text_KeywordDensityResult = KeywordDensityResult;
404
435
  declare const text_LINE_OPS: typeof LINE_OPS;
405
436
  type text_LineOp = LineOp;
406
437
  type text_LineType = LineType;
@@ -424,6 +455,7 @@ type text_TableOptions = TableOptions;
424
455
  type text_TextAnalysis = TextAnalysis;
425
456
  type text_WordCountResult = WordCountResult;
426
457
  declare const text_addBorder: typeof addBorder;
458
+ declare const text_analyzeKeywordDensity: typeof analyzeKeywordDensity;
427
459
  declare const text_analyzeSentenceLengths: typeof analyzeSentenceLengths;
428
460
  declare const text_analyzeText: typeof analyzeText;
429
461
  declare const text_applyOp: typeof applyOp;
@@ -483,7 +515,7 @@ declare const text_textToMorse: typeof textToMorse;
483
515
  declare const text_unescapeString: typeof unescapeString;
484
516
  declare const text_wordFrequency: typeof wordFrequency;
485
517
  declare namespace text {
486
- export { type text_AsciiFont as AsciiFont, type text_AsciiOptions as AsciiOptions, text_CASE_FORMATS as CASE_FORMATS, type text_CaseFormat as CaseFormat, type text_ConvertOptions as ConvertOptions, text_DEFAULT_CONVERT_OPTIONS as DEFAULT_CONVERT_OPTIONS, type text_DiffFile as DiffFile, type text_DiffHunk as DiffHunk, type text_DiffLine as DiffLine, type text_DiffResult as DiffResult, type text_DiffType as DiffType, type text_DiffViewerLine as DiffViewerLine, text_EMOJI_TABLE as EMOJI_TABLE, text_ESCAPE_MODES as ESCAPE_MODES, type text_EmojiEntry as EmojiEntry, type text_EscapeMode as EscapeMode, type text_FillerCategory as FillerCategory, type text_FillerMatch as FillerMatch, type text_FillerWordResult as FillerWordResult, text_LINE_OPS as LINE_OPS, type text_LineOp as LineOp, type text_LineType as LineType, type text_LoremUnit as LoremUnit, text_MORSE_CODE as MORSE_CODE, type text_MarkdownResult as MarkdownResult, type text_MorseOptions as MorseOptions, type text_ParsedDiff as ParsedDiff, type text_ParsedTable as ParsedTable, type text_PassiveVoiceMatch as PassiveVoiceMatch, type text_PassiveVoiceResult as PassiveVoiceResult, type text_PassiveVoiceSentence as PassiveVoiceSentence, type text_ReadabilityResult as ReadabilityResult, type text_ReadabilityScore as ReadabilityScore, type text_SentenceLengthBucket as SentenceLengthBucket, type text_SentenceLengthDistribution as SentenceLengthDistribution, type text_SlugSeparator as SlugSeparator, type text_StringDistanceMode as StringDistanceMode, type text_StringDistanceResult as StringDistanceResult, type text_TableOptions as TableOptions, type text_TextAnalysis as TextAnalysis, type text_WordCountResult as WordCountResult, text_addBorder as addBorder, text_analyzeSentenceLengths as analyzeSentenceLengths, text_analyzeText as analyzeText, text_applyOp as applyOp, text_applyOps as applyOps, text_calculateStringDistance as calculateStringDistance, text_centerText as centerText, text_convertAll as convertAll, text_convertCase as convertCase, text_countWords as countWords, text_csvToHtml as csvToHtml, text_csvToMarkdown as csvToMarkdown, text_detectDelimiter as detectDelimiter, text_detectFillerWords as detectFillerWords, text_detectPassiveVoice as detectPassiveVoice, text_diffLines as diffLines, text_diffLinesSimple as diffLinesSimple, text_diffStats as diffStats, text_escapeAll as escapeAll, text_escapeString as escapeString, text_extractHeadings as extractHeadings, text_formatReadingTime as formatReadingTime, text_generate as generate, text_generateDiff as generateDiff, text_generateHtmlTable as generateHtmlTable, text_generateMarkdownTable as generateMarkdownTable, text_generateParagraphs as generateParagraphs, text_generateSentences as generateSentences, text_generateWords as generateWords, text_getAvailableFonts as getAvailableFonts, text_getEmojiByCategory as getEmojiByCategory, text_getEmojiByChar as getEmojiByChar, text_getEmojiByShortcode as getEmojiByShortcode, text_getEmojiCategories as getEmojiCategories, text_getMorseForChar as getMorseForChar, text_getMorseTiming as getMorseTiming, text_htmlToMarkdown as htmlToMarkdown, text_isValidMorse as isValidMorse, text_markdownToHtml as markdownToHtml, text_morseToText as morseToText, text_numberToOrdinal as numberToOrdinal, text_numberToRoman as numberToRoman, text_numberToWords as numberToWords, text_ordinalWords as ordinalWords, text_parseDiff as parseDiff, text_parseTableData as parseTableData, text_readabilityScore as readabilityScore, text_renderMarkdown as renderMarkdown, text_romanToNumber as romanToNumber, text_scoreReadability as scoreReadability, text_searchEmoji as searchEmoji, text_sentenceCount as sentenceCount, text_slugify as slugify, text_slugifyAll as slugifyAll, text_syllableCount as syllableCount, text_textToAscii as textToAscii, text_textToMorse as textToMorse, text_unescapeString as unescapeString, text_wordFrequency as wordFrequency };
518
+ export { type text_AsciiFont as AsciiFont, type text_AsciiOptions as AsciiOptions, text_CASE_FORMATS as CASE_FORMATS, type text_CaseFormat as CaseFormat, type text_ConvertOptions as ConvertOptions, text_DEFAULT_CONVERT_OPTIONS as DEFAULT_CONVERT_OPTIONS, type text_DiffFile as DiffFile, type text_DiffHunk as DiffHunk, type text_DiffLine as DiffLine, type text_DiffResult as DiffResult, type text_DiffType as DiffType, type text_DiffViewerLine as DiffViewerLine, text_EMOJI_TABLE as EMOJI_TABLE, text_ESCAPE_MODES as ESCAPE_MODES, type text_EmojiEntry as EmojiEntry, type text_EscapeMode as EscapeMode, type text_FillerCategory as FillerCategory, type text_FillerMatch as FillerMatch, type text_FillerWordResult as FillerWordResult, type text_KeywordDensityEntry as KeywordDensityEntry, type text_KeywordDensityOptions as KeywordDensityOptions, type text_KeywordDensityResult as KeywordDensityResult, text_LINE_OPS as LINE_OPS, type text_LineOp as LineOp, type text_LineType as LineType, type text_LoremUnit as LoremUnit, text_MORSE_CODE as MORSE_CODE, type text_MarkdownResult as MarkdownResult, type text_MorseOptions as MorseOptions, type text_ParsedDiff as ParsedDiff, type text_ParsedTable as ParsedTable, type text_PassiveVoiceMatch as PassiveVoiceMatch, type text_PassiveVoiceResult as PassiveVoiceResult, type text_PassiveVoiceSentence as PassiveVoiceSentence, type text_ReadabilityResult as ReadabilityResult, type text_ReadabilityScore as ReadabilityScore, type text_SentenceLengthBucket as SentenceLengthBucket, type text_SentenceLengthDistribution as SentenceLengthDistribution, type text_SlugSeparator as SlugSeparator, type text_StringDistanceMode as StringDistanceMode, type text_StringDistanceResult as StringDistanceResult, type text_TableOptions as TableOptions, type text_TextAnalysis as TextAnalysis, type text_WordCountResult as WordCountResult, text_addBorder as addBorder, text_analyzeKeywordDensity as analyzeKeywordDensity, text_analyzeSentenceLengths as analyzeSentenceLengths, text_analyzeText as analyzeText, text_applyOp as applyOp, text_applyOps as applyOps, text_calculateStringDistance as calculateStringDistance, text_centerText as centerText, text_convertAll as convertAll, text_convertCase as convertCase, text_countWords as countWords, text_csvToHtml as csvToHtml, text_csvToMarkdown as csvToMarkdown, text_detectDelimiter as detectDelimiter, text_detectFillerWords as detectFillerWords, text_detectPassiveVoice as detectPassiveVoice, text_diffLines as diffLines, text_diffLinesSimple as diffLinesSimple, text_diffStats as diffStats, text_escapeAll as escapeAll, text_escapeString as escapeString, text_extractHeadings as extractHeadings, text_formatReadingTime as formatReadingTime, text_generate as generate, text_generateDiff as generateDiff, text_generateHtmlTable as generateHtmlTable, text_generateMarkdownTable as generateMarkdownTable, text_generateParagraphs as generateParagraphs, text_generateSentences as generateSentences, text_generateWords as generateWords, text_getAvailableFonts as getAvailableFonts, text_getEmojiByCategory as getEmojiByCategory, text_getEmojiByChar as getEmojiByChar, text_getEmojiByShortcode as getEmojiByShortcode, text_getEmojiCategories as getEmojiCategories, text_getMorseForChar as getMorseForChar, text_getMorseTiming as getMorseTiming, text_htmlToMarkdown as htmlToMarkdown, text_isValidMorse as isValidMorse, text_markdownToHtml as markdownToHtml, text_morseToText as morseToText, text_numberToOrdinal as numberToOrdinal, text_numberToRoman as numberToRoman, text_numberToWords as numberToWords, text_ordinalWords as ordinalWords, text_parseDiff as parseDiff, text_parseTableData as parseTableData, text_readabilityScore as readabilityScore, text_renderMarkdown as renderMarkdown, text_romanToNumber as romanToNumber, text_scoreReadability as scoreReadability, text_searchEmoji as searchEmoji, text_sentenceCount as sentenceCount, text_slugify as slugify, text_slugifyAll as slugifyAll, text_syllableCount as syllableCount, text_textToAscii as textToAscii, text_textToMorse as textToMorse, text_unescapeString as unescapeString, text_wordFrequency as wordFrequency };
487
519
  }
488
520
 
489
- export { csvToMarkdown as $, type AsciiFont as A, type SlugSeparator as B, CASE_FORMATS as C, DEFAULT_CONVERT_OPTIONS as D, EMOJI_TABLE as E, type FillerCategory as F, type StringDistanceMode as G, type StringDistanceResult as H, type TextAnalysis as I, addBorder as J, analyzeSentenceLengths as K, LINE_OPS as L, MORSE_CODE as M, analyzeText as N, applyOp as O, type ParsedDiff as P, applyOps as Q, type ReadabilityResult as R, type SentenceLengthBucket as S, type TableOptions as T, calculateStringDistance as U, centerText as V, type WordCountResult as W, convertAll as X, convertCase as Y, countWords as Z, csvToHtml as _, type AsciiOptions as a, detectDelimiter as a0, detectFillerWords as a1, detectPassiveVoice as a2, diffLines as a3, diffLinesSimple as a4, diffStats as a5, escapeAll as a6, escapeString as a7, extractHeadings as a8, formatReadingTime as a9, romanToNumber as aA, scoreReadability as aB, searchEmoji as aC, sentenceCount as aD, slugify as aE, slugifyAll as aF, syllableCount as aG, textToAscii as aH, textToMorse as aI, unescapeString as aJ, wordFrequency as aK, generate as aa, generateDiff as ab, generateHtmlTable as ac, generateMarkdownTable as ad, generateParagraphs as ae, generateSentences as af, generateWords as ag, getAvailableFonts as ah, getEmojiByCategory as ai, getEmojiByChar as aj, getEmojiByShortcode as ak, getEmojiCategories as al, getMorseForChar as am, getMorseTiming as an, htmlToMarkdown as ao, isValidMorse as ap, markdownToHtml as aq, morseToText as ar, numberToOrdinal as as, numberToRoman as at, numberToWords as au, ordinalWords as av, parseDiff as aw, parseTableData as ax, readabilityScore as ay, renderMarkdown as az, type CaseFormat as b, type ConvertOptions as c, type DiffFile as d, type DiffHunk as e, type DiffLine as f, type DiffResult as g, type DiffType as h, type DiffViewerLine as i, ESCAPE_MODES as j, type EmojiEntry as k, type EscapeMode as l, type FillerMatch as m, type FillerWordResult as n, type LineOp as o, type LineType as p, type LoremUnit as q, type MarkdownResult as r, type MorseOptions as s, text as t, type ParsedTable as u, type PassiveVoiceMatch as v, type PassiveVoiceResult as w, type PassiveVoiceSentence as x, type ReadabilityScore as y, type SentenceLengthDistribution as z };
521
+ export { convertAll as $, type AsciiFont as A, type ReadabilityScore as B, CASE_FORMATS as C, DEFAULT_CONVERT_OPTIONS as D, EMOJI_TABLE as E, type FillerCategory as F, type SentenceLengthDistribution as G, type SlugSeparator as H, type StringDistanceMode as I, type StringDistanceResult as J, type KeywordDensityEntry as K, LINE_OPS as L, MORSE_CODE as M, type TextAnalysis as N, addBorder as O, type ParsedDiff as P, analyzeKeywordDensity as Q, type ReadabilityResult as R, type SentenceLengthBucket as S, type TableOptions as T, analyzeSentenceLengths as U, analyzeText as V, type WordCountResult as W, applyOp as X, applyOps as Y, calculateStringDistance as Z, centerText as _, type AsciiOptions as a, convertCase as a0, countWords as a1, csvToHtml as a2, csvToMarkdown as a3, detectDelimiter as a4, detectFillerWords as a5, detectPassiveVoice as a6, diffLines as a7, diffLinesSimple as a8, diffStats as a9, parseDiff as aA, parseTableData as aB, readabilityScore as aC, renderMarkdown as aD, romanToNumber as aE, scoreReadability as aF, searchEmoji as aG, sentenceCount as aH, slugify as aI, slugifyAll as aJ, syllableCount as aK, textToAscii as aL, textToMorse as aM, unescapeString as aN, wordFrequency as aO, escapeAll as aa, escapeString as ab, extractHeadings as ac, formatReadingTime as ad, generate as ae, generateDiff as af, generateHtmlTable as ag, generateMarkdownTable as ah, generateParagraphs as ai, generateSentences as aj, generateWords as ak, getAvailableFonts as al, getEmojiByCategory as am, getEmojiByChar as an, getEmojiByShortcode as ao, getEmojiCategories as ap, getMorseForChar as aq, getMorseTiming as ar, htmlToMarkdown as as, isValidMorse as at, markdownToHtml as au, morseToText as av, numberToOrdinal as aw, numberToRoman as ax, numberToWords as ay, ordinalWords as az, type CaseFormat as b, type ConvertOptions as c, type DiffFile as d, type DiffHunk as e, type DiffLine as f, type DiffResult as g, type DiffType as h, type DiffViewerLine as i, ESCAPE_MODES as j, type EmojiEntry as k, type EscapeMode as l, type FillerMatch as m, type FillerWordResult as n, type KeywordDensityOptions as o, type KeywordDensityResult as p, type LineOp as q, type LineType as r, type LoremUnit as s, text as t, type MarkdownResult as u, type MorseOptions as v, type ParsedTable as w, type PassiveVoiceMatch as x, type PassiveVoiceResult as y, type PassiveVoiceSentence as z };
@@ -23,6 +23,7 @@
23
23
  * - readability-score: scoreReadability
24
24
  * - filler-word-detector: detectFillerWords
25
25
  * - sentence-length-distribution: analyzeSentenceLengths
26
+ * - keyword-density-analyzer: analyzeKeywordDensity
26
27
  * - emoji-lookup : searchEmoji, getEmojiByShortcode, getEmojiByChar, getEmojiByCategory, getEmojiCategories, EMOJI_TABLE
27
28
  */
28
29
  interface WordCountResult {
@@ -357,6 +358,33 @@ interface SentenceLengthDistribution {
357
358
  * (e.g. "Dr.") as sentence boundaries.
358
359
  */
359
360
  declare function analyzeSentenceLengths(text: string): SentenceLengthDistribution;
361
+ interface KeywordDensityEntry {
362
+ keyword: string;
363
+ count: number;
364
+ density: number;
365
+ }
366
+ interface KeywordDensityResult {
367
+ totalWords: number;
368
+ uniqueKeywords: number;
369
+ ngramSize: number;
370
+ keywords: KeywordDensityEntry[];
371
+ }
372
+ interface KeywordDensityOptions {
373
+ topN?: number;
374
+ minWordLength?: number;
375
+ ngramSize?: number;
376
+ }
377
+ /**
378
+ * Count keyword/phrase frequency and density (occurrences per 100 words)
379
+ * across a block of text, the way an SEO keyword-density checker does.
380
+ * With the default ngramSize of 1, common English stopwords and words
381
+ * shorter than minWordLength are excluded; for ngramSize 2 or 3 (phrases),
382
+ * stopwords are kept since useful phrases often contain them, but every
383
+ * word in the phrase must still meet minWordLength.
384
+ */
385
+ declare function analyzeKeywordDensity(text: string, options?: KeywordDensityOptions): KeywordDensityResult | {
386
+ error: string;
387
+ };
360
388
  interface EmojiEntry {
361
389
  emoji: string;
362
390
  name: string;
@@ -401,6 +429,9 @@ type text_EscapeMode = EscapeMode;
401
429
  type text_FillerCategory = FillerCategory;
402
430
  type text_FillerMatch = FillerMatch;
403
431
  type text_FillerWordResult = FillerWordResult;
432
+ type text_KeywordDensityEntry = KeywordDensityEntry;
433
+ type text_KeywordDensityOptions = KeywordDensityOptions;
434
+ type text_KeywordDensityResult = KeywordDensityResult;
404
435
  declare const text_LINE_OPS: typeof LINE_OPS;
405
436
  type text_LineOp = LineOp;
406
437
  type text_LineType = LineType;
@@ -424,6 +455,7 @@ type text_TableOptions = TableOptions;
424
455
  type text_TextAnalysis = TextAnalysis;
425
456
  type text_WordCountResult = WordCountResult;
426
457
  declare const text_addBorder: typeof addBorder;
458
+ declare const text_analyzeKeywordDensity: typeof analyzeKeywordDensity;
427
459
  declare const text_analyzeSentenceLengths: typeof analyzeSentenceLengths;
428
460
  declare const text_analyzeText: typeof analyzeText;
429
461
  declare const text_applyOp: typeof applyOp;
@@ -483,7 +515,7 @@ declare const text_textToMorse: typeof textToMorse;
483
515
  declare const text_unescapeString: typeof unescapeString;
484
516
  declare const text_wordFrequency: typeof wordFrequency;
485
517
  declare namespace text {
486
- export { type text_AsciiFont as AsciiFont, type text_AsciiOptions as AsciiOptions, text_CASE_FORMATS as CASE_FORMATS, type text_CaseFormat as CaseFormat, type text_ConvertOptions as ConvertOptions, text_DEFAULT_CONVERT_OPTIONS as DEFAULT_CONVERT_OPTIONS, type text_DiffFile as DiffFile, type text_DiffHunk as DiffHunk, type text_DiffLine as DiffLine, type text_DiffResult as DiffResult, type text_DiffType as DiffType, type text_DiffViewerLine as DiffViewerLine, text_EMOJI_TABLE as EMOJI_TABLE, text_ESCAPE_MODES as ESCAPE_MODES, type text_EmojiEntry as EmojiEntry, type text_EscapeMode as EscapeMode, type text_FillerCategory as FillerCategory, type text_FillerMatch as FillerMatch, type text_FillerWordResult as FillerWordResult, text_LINE_OPS as LINE_OPS, type text_LineOp as LineOp, type text_LineType as LineType, type text_LoremUnit as LoremUnit, text_MORSE_CODE as MORSE_CODE, type text_MarkdownResult as MarkdownResult, type text_MorseOptions as MorseOptions, type text_ParsedDiff as ParsedDiff, type text_ParsedTable as ParsedTable, type text_PassiveVoiceMatch as PassiveVoiceMatch, type text_PassiveVoiceResult as PassiveVoiceResult, type text_PassiveVoiceSentence as PassiveVoiceSentence, type text_ReadabilityResult as ReadabilityResult, type text_ReadabilityScore as ReadabilityScore, type text_SentenceLengthBucket as SentenceLengthBucket, type text_SentenceLengthDistribution as SentenceLengthDistribution, type text_SlugSeparator as SlugSeparator, type text_StringDistanceMode as StringDistanceMode, type text_StringDistanceResult as StringDistanceResult, type text_TableOptions as TableOptions, type text_TextAnalysis as TextAnalysis, type text_WordCountResult as WordCountResult, text_addBorder as addBorder, text_analyzeSentenceLengths as analyzeSentenceLengths, text_analyzeText as analyzeText, text_applyOp as applyOp, text_applyOps as applyOps, text_calculateStringDistance as calculateStringDistance, text_centerText as centerText, text_convertAll as convertAll, text_convertCase as convertCase, text_countWords as countWords, text_csvToHtml as csvToHtml, text_csvToMarkdown as csvToMarkdown, text_detectDelimiter as detectDelimiter, text_detectFillerWords as detectFillerWords, text_detectPassiveVoice as detectPassiveVoice, text_diffLines as diffLines, text_diffLinesSimple as diffLinesSimple, text_diffStats as diffStats, text_escapeAll as escapeAll, text_escapeString as escapeString, text_extractHeadings as extractHeadings, text_formatReadingTime as formatReadingTime, text_generate as generate, text_generateDiff as generateDiff, text_generateHtmlTable as generateHtmlTable, text_generateMarkdownTable as generateMarkdownTable, text_generateParagraphs as generateParagraphs, text_generateSentences as generateSentences, text_generateWords as generateWords, text_getAvailableFonts as getAvailableFonts, text_getEmojiByCategory as getEmojiByCategory, text_getEmojiByChar as getEmojiByChar, text_getEmojiByShortcode as getEmojiByShortcode, text_getEmojiCategories as getEmojiCategories, text_getMorseForChar as getMorseForChar, text_getMorseTiming as getMorseTiming, text_htmlToMarkdown as htmlToMarkdown, text_isValidMorse as isValidMorse, text_markdownToHtml as markdownToHtml, text_morseToText as morseToText, text_numberToOrdinal as numberToOrdinal, text_numberToRoman as numberToRoman, text_numberToWords as numberToWords, text_ordinalWords as ordinalWords, text_parseDiff as parseDiff, text_parseTableData as parseTableData, text_readabilityScore as readabilityScore, text_renderMarkdown as renderMarkdown, text_romanToNumber as romanToNumber, text_scoreReadability as scoreReadability, text_searchEmoji as searchEmoji, text_sentenceCount as sentenceCount, text_slugify as slugify, text_slugifyAll as slugifyAll, text_syllableCount as syllableCount, text_textToAscii as textToAscii, text_textToMorse as textToMorse, text_unescapeString as unescapeString, text_wordFrequency as wordFrequency };
518
+ export { type text_AsciiFont as AsciiFont, type text_AsciiOptions as AsciiOptions, text_CASE_FORMATS as CASE_FORMATS, type text_CaseFormat as CaseFormat, type text_ConvertOptions as ConvertOptions, text_DEFAULT_CONVERT_OPTIONS as DEFAULT_CONVERT_OPTIONS, type text_DiffFile as DiffFile, type text_DiffHunk as DiffHunk, type text_DiffLine as DiffLine, type text_DiffResult as DiffResult, type text_DiffType as DiffType, type text_DiffViewerLine as DiffViewerLine, text_EMOJI_TABLE as EMOJI_TABLE, text_ESCAPE_MODES as ESCAPE_MODES, type text_EmojiEntry as EmojiEntry, type text_EscapeMode as EscapeMode, type text_FillerCategory as FillerCategory, type text_FillerMatch as FillerMatch, type text_FillerWordResult as FillerWordResult, type text_KeywordDensityEntry as KeywordDensityEntry, type text_KeywordDensityOptions as KeywordDensityOptions, type text_KeywordDensityResult as KeywordDensityResult, text_LINE_OPS as LINE_OPS, type text_LineOp as LineOp, type text_LineType as LineType, type text_LoremUnit as LoremUnit, text_MORSE_CODE as MORSE_CODE, type text_MarkdownResult as MarkdownResult, type text_MorseOptions as MorseOptions, type text_ParsedDiff as ParsedDiff, type text_ParsedTable as ParsedTable, type text_PassiveVoiceMatch as PassiveVoiceMatch, type text_PassiveVoiceResult as PassiveVoiceResult, type text_PassiveVoiceSentence as PassiveVoiceSentence, type text_ReadabilityResult as ReadabilityResult, type text_ReadabilityScore as ReadabilityScore, type text_SentenceLengthBucket as SentenceLengthBucket, type text_SentenceLengthDistribution as SentenceLengthDistribution, type text_SlugSeparator as SlugSeparator, type text_StringDistanceMode as StringDistanceMode, type text_StringDistanceResult as StringDistanceResult, type text_TableOptions as TableOptions, type text_TextAnalysis as TextAnalysis, type text_WordCountResult as WordCountResult, text_addBorder as addBorder, text_analyzeKeywordDensity as analyzeKeywordDensity, text_analyzeSentenceLengths as analyzeSentenceLengths, text_analyzeText as analyzeText, text_applyOp as applyOp, text_applyOps as applyOps, text_calculateStringDistance as calculateStringDistance, text_centerText as centerText, text_convertAll as convertAll, text_convertCase as convertCase, text_countWords as countWords, text_csvToHtml as csvToHtml, text_csvToMarkdown as csvToMarkdown, text_detectDelimiter as detectDelimiter, text_detectFillerWords as detectFillerWords, text_detectPassiveVoice as detectPassiveVoice, text_diffLines as diffLines, text_diffLinesSimple as diffLinesSimple, text_diffStats as diffStats, text_escapeAll as escapeAll, text_escapeString as escapeString, text_extractHeadings as extractHeadings, text_formatReadingTime as formatReadingTime, text_generate as generate, text_generateDiff as generateDiff, text_generateHtmlTable as generateHtmlTable, text_generateMarkdownTable as generateMarkdownTable, text_generateParagraphs as generateParagraphs, text_generateSentences as generateSentences, text_generateWords as generateWords, text_getAvailableFonts as getAvailableFonts, text_getEmojiByCategory as getEmojiByCategory, text_getEmojiByChar as getEmojiByChar, text_getEmojiByShortcode as getEmojiByShortcode, text_getEmojiCategories as getEmojiCategories, text_getMorseForChar as getMorseForChar, text_getMorseTiming as getMorseTiming, text_htmlToMarkdown as htmlToMarkdown, text_isValidMorse as isValidMorse, text_markdownToHtml as markdownToHtml, text_morseToText as morseToText, text_numberToOrdinal as numberToOrdinal, text_numberToRoman as numberToRoman, text_numberToWords as numberToWords, text_ordinalWords as ordinalWords, text_parseDiff as parseDiff, text_parseTableData as parseTableData, text_readabilityScore as readabilityScore, text_renderMarkdown as renderMarkdown, text_romanToNumber as romanToNumber, text_scoreReadability as scoreReadability, text_searchEmoji as searchEmoji, text_sentenceCount as sentenceCount, text_slugify as slugify, text_slugifyAll as slugifyAll, text_syllableCount as syllableCount, text_textToAscii as textToAscii, text_textToMorse as textToMorse, text_unescapeString as unescapeString, text_wordFrequency as wordFrequency };
487
519
  }
488
520
 
489
- export { csvToMarkdown as $, type AsciiFont as A, type SlugSeparator as B, CASE_FORMATS as C, DEFAULT_CONVERT_OPTIONS as D, EMOJI_TABLE as E, type FillerCategory as F, type StringDistanceMode as G, type StringDistanceResult as H, type TextAnalysis as I, addBorder as J, analyzeSentenceLengths as K, LINE_OPS as L, MORSE_CODE as M, analyzeText as N, applyOp as O, type ParsedDiff as P, applyOps as Q, type ReadabilityResult as R, type SentenceLengthBucket as S, type TableOptions as T, calculateStringDistance as U, centerText as V, type WordCountResult as W, convertAll as X, convertCase as Y, countWords as Z, csvToHtml as _, type AsciiOptions as a, detectDelimiter as a0, detectFillerWords as a1, detectPassiveVoice as a2, diffLines as a3, diffLinesSimple as a4, diffStats as a5, escapeAll as a6, escapeString as a7, extractHeadings as a8, formatReadingTime as a9, romanToNumber as aA, scoreReadability as aB, searchEmoji as aC, sentenceCount as aD, slugify as aE, slugifyAll as aF, syllableCount as aG, textToAscii as aH, textToMorse as aI, unescapeString as aJ, wordFrequency as aK, generate as aa, generateDiff as ab, generateHtmlTable as ac, generateMarkdownTable as ad, generateParagraphs as ae, generateSentences as af, generateWords as ag, getAvailableFonts as ah, getEmojiByCategory as ai, getEmojiByChar as aj, getEmojiByShortcode as ak, getEmojiCategories as al, getMorseForChar as am, getMorseTiming as an, htmlToMarkdown as ao, isValidMorse as ap, markdownToHtml as aq, morseToText as ar, numberToOrdinal as as, numberToRoman as at, numberToWords as au, ordinalWords as av, parseDiff as aw, parseTableData as ax, readabilityScore as ay, renderMarkdown as az, type CaseFormat as b, type ConvertOptions as c, type DiffFile as d, type DiffHunk as e, type DiffLine as f, type DiffResult as g, type DiffType as h, type DiffViewerLine as i, ESCAPE_MODES as j, type EmojiEntry as k, type EscapeMode as l, type FillerMatch as m, type FillerWordResult as n, type LineOp as o, type LineType as p, type LoremUnit as q, type MarkdownResult as r, type MorseOptions as s, text as t, type ParsedTable as u, type PassiveVoiceMatch as v, type PassiveVoiceResult as w, type PassiveVoiceSentence as x, type ReadabilityScore as y, type SentenceLengthDistribution as z };
521
+ export { convertAll as $, type AsciiFont as A, type ReadabilityScore as B, CASE_FORMATS as C, DEFAULT_CONVERT_OPTIONS as D, EMOJI_TABLE as E, type FillerCategory as F, type SentenceLengthDistribution as G, type SlugSeparator as H, type StringDistanceMode as I, type StringDistanceResult as J, type KeywordDensityEntry as K, LINE_OPS as L, MORSE_CODE as M, type TextAnalysis as N, addBorder as O, type ParsedDiff as P, analyzeKeywordDensity as Q, type ReadabilityResult as R, type SentenceLengthBucket as S, type TableOptions as T, analyzeSentenceLengths as U, analyzeText as V, type WordCountResult as W, applyOp as X, applyOps as Y, calculateStringDistance as Z, centerText as _, type AsciiOptions as a, convertCase as a0, countWords as a1, csvToHtml as a2, csvToMarkdown as a3, detectDelimiter as a4, detectFillerWords as a5, detectPassiveVoice as a6, diffLines as a7, diffLinesSimple as a8, diffStats as a9, parseDiff as aA, parseTableData as aB, readabilityScore as aC, renderMarkdown as aD, romanToNumber as aE, scoreReadability as aF, searchEmoji as aG, sentenceCount as aH, slugify as aI, slugifyAll as aJ, syllableCount as aK, textToAscii as aL, textToMorse as aM, unescapeString as aN, wordFrequency as aO, escapeAll as aa, escapeString as ab, extractHeadings as ac, formatReadingTime as ad, generate as ae, generateDiff as af, generateHtmlTable as ag, generateMarkdownTable as ah, generateParagraphs as ai, generateSentences as aj, generateWords as ak, getAvailableFonts as al, getEmojiByCategory as am, getEmojiByChar as an, getEmojiByShortcode as ao, getEmojiCategories as ap, getMorseForChar as aq, getMorseTiming as ar, htmlToMarkdown as as, isValidMorse as at, markdownToHtml as au, morseToText as av, numberToOrdinal as aw, numberToRoman as ax, numberToWords as ay, ordinalWords as az, type CaseFormat as b, type ConvertOptions as c, type DiffFile as d, type DiffHunk as e, type DiffLine as f, type DiffResult as g, type DiffType as h, type DiffViewerLine as i, ESCAPE_MODES as j, type EmojiEntry as k, type EscapeMode as l, type FillerMatch as m, type FillerWordResult as n, type KeywordDensityOptions as o, type KeywordDensityResult as p, type LineOp as q, type LineType as r, type LoremUnit as s, text as t, type MarkdownResult as u, type MorseOptions as v, type ParsedTable as w, type PassiveVoiceMatch as x, type PassiveVoiceResult as y, type PassiveVoiceSentence as z };
@@ -1208,7 +1208,93 @@ function parseWebm(bytes) {
1208
1208
  }
1209
1209
  return result;
1210
1210
  }
1211
+ function skipGifSubBlocks(bytes, offset) {
1212
+ while (offset < bytes.length) {
1213
+ const len = bytes[offset];
1214
+ offset += 1;
1215
+ if (len === 0) break;
1216
+ offset += len;
1217
+ }
1218
+ return offset;
1219
+ }
1220
+ function inspectGifFrames(bytes) {
1221
+ if (bytes.length < 13) return { error: "File too small to be a valid GIF file" };
1222
+ const signature = Buffer.from(bytes.subarray(0, 6)).toString("ascii");
1223
+ if (signature !== "GIF87a" && signature !== "GIF89a") return { error: "Not a valid GIF file (missing GIF87a/GIF89a signature)" };
1224
+ const version = signature.slice(3);
1225
+ const width = readU16LE(bytes, 6);
1226
+ const height = readU16LE(bytes, 8);
1227
+ const packed = bytes[10];
1228
+ const hasGlobalColorTable = (packed & 128) !== 0;
1229
+ const globalColorTableSize = hasGlobalColorTable ? 2 << (packed & 7) : 0;
1230
+ let offset = 13;
1231
+ if (hasGlobalColorTable) offset += globalColorTableSize * 3;
1232
+ let frameCount = 0;
1233
+ let loopCount = null;
1234
+ let totalDurationMs = 0;
1235
+ let hasTransparency = false;
1236
+ let pendingDelay = 0;
1237
+ while (offset < bytes.length) {
1238
+ const blockType = bytes[offset];
1239
+ if (blockType === 59) break;
1240
+ if (blockType === 33) {
1241
+ const label = bytes[offset + 1];
1242
+ offset += 2;
1243
+ if (label === 249) {
1244
+ const subLen = bytes[offset] ?? 0;
1245
+ if (subLen >= 4) {
1246
+ const flags = bytes[offset + 1];
1247
+ pendingDelay = readU16LE(bytes, offset + 2);
1248
+ if (flags & 1) hasTransparency = true;
1249
+ }
1250
+ offset += 1 + subLen;
1251
+ offset = skipGifSubBlocks(bytes, offset);
1252
+ } else if (label === 255) {
1253
+ const blockSize = bytes[offset] ?? 0;
1254
+ const appId = Buffer.from(bytes.subarray(offset + 1, offset + 1 + Math.min(blockSize, 11))).toString("ascii");
1255
+ offset += 1 + blockSize;
1256
+ if (appId === "NETSCAPE2.0") {
1257
+ const subLen = bytes[offset] ?? 0;
1258
+ if (subLen >= 3 && bytes[offset + 1] === 1) {
1259
+ loopCount = readU16LE(bytes, offset + 2);
1260
+ }
1261
+ }
1262
+ offset = skipGifSubBlocks(bytes, offset);
1263
+ } else {
1264
+ offset = skipGifSubBlocks(bytes, offset);
1265
+ }
1266
+ } else if (blockType === 44) {
1267
+ if (offset + 10 > bytes.length) return { error: "Truncated image descriptor" };
1268
+ frameCount++;
1269
+ totalDurationMs += pendingDelay * 10;
1270
+ pendingDelay = 0;
1271
+ const packedImg = bytes[offset + 9];
1272
+ const hasLocalColorTable = (packedImg & 128) !== 0;
1273
+ const localColorTableSize = hasLocalColorTable ? 2 << (packedImg & 7) : 0;
1274
+ offset += 10;
1275
+ if (hasLocalColorTable) offset += localColorTableSize * 3;
1276
+ offset += 1;
1277
+ offset = skipGifSubBlocks(bytes, offset);
1278
+ } else {
1279
+ break;
1280
+ }
1281
+ }
1282
+ if (frameCount === 0) return { error: "No image data blocks found in this GIF file" };
1283
+ return {
1284
+ version,
1285
+ width,
1286
+ height,
1287
+ frameCount,
1288
+ animated: frameCount > 1,
1289
+ loopCount,
1290
+ totalDurationMs,
1291
+ hasGlobalColorTable,
1292
+ globalColorTableSize,
1293
+ hasTransparency
1294
+ };
1295
+ }
1211
1296
 
1297
+ exports.inspectGifFrames = inspectGifFrames;
1212
1298
  exports.readExifData = readExifData;
1213
1299
  exports.readFlacInfo = readFlacInfo;
1214
1300
  exports.readIcoInfo = readIcoInfo;
@@ -1 +1 @@
1
- export { E as ExifData, a as ExifError, F as FlacInfo, b as FlacInfoError, I as IcoImageEntry, c as IcoInfo, d as IcoInfoError, e as Id3Tags, f as Id3TagsError, g as ImageFormat, h as ImageInfo, i as ImageInfoError, P as PdfMetadata, j as PdfMetadataError, k as PdfPageDimension, l as PdfPageDimensionsResult, n as PdfPageOrientation, V as VideoInfo, o as VideoInfoError, W as WavInfo, p as WavInfoError, r as readExifData, q as readFlacInfo, s as readIcoInfo, t as readId3Tags, u as readImageInfo, v as readPdfMetadata, w as readPdfPageDimensions, x as readVideoInfo, y as readWavInfo } from '../media-fD8dJ5qR.cjs';
1
+ export { E as ExifData, a as ExifError, F as FlacInfo, b as FlacInfoError, G as GifInfo, c as GifInfoError, I as IcoImageEntry, d as IcoInfo, e as IcoInfoError, f as Id3Tags, g as Id3TagsError, h as ImageFormat, i as ImageInfo, j as ImageInfoError, P as PdfMetadata, k as PdfMetadataError, l as PdfPageDimension, n as PdfPageDimensionsResult, o as PdfPageOrientation, V as VideoInfo, p as VideoInfoError, W as WavInfo, q as WavInfoError, r as inspectGifFrames, s as readExifData, t as readFlacInfo, u as readIcoInfo, v as readId3Tags, w as readImageInfo, x as readPdfMetadata, y as readPdfPageDimensions, z as readVideoInfo, A as readWavInfo } from '../media-BUvwm4wU.cjs';
@@ -1 +1 @@
1
- export { E as ExifData, a as ExifError, F as FlacInfo, b as FlacInfoError, I as IcoImageEntry, c as IcoInfo, d as IcoInfoError, e as Id3Tags, f as Id3TagsError, g as ImageFormat, h as ImageInfo, i as ImageInfoError, P as PdfMetadata, j as PdfMetadataError, k as PdfPageDimension, l as PdfPageDimensionsResult, n as PdfPageOrientation, V as VideoInfo, o as VideoInfoError, W as WavInfo, p as WavInfoError, r as readExifData, q as readFlacInfo, s as readIcoInfo, t as readId3Tags, u as readImageInfo, v as readPdfMetadata, w as readPdfPageDimensions, x as readVideoInfo, y as readWavInfo } from '../media-fD8dJ5qR.js';
1
+ export { E as ExifData, a as ExifError, F as FlacInfo, b as FlacInfoError, G as GifInfo, c as GifInfoError, I as IcoImageEntry, d as IcoInfo, e as IcoInfoError, f as Id3Tags, g as Id3TagsError, h as ImageFormat, i as ImageInfo, j as ImageInfoError, P as PdfMetadata, k as PdfMetadataError, l as PdfPageDimension, n as PdfPageDimensionsResult, o as PdfPageOrientation, V as VideoInfo, p as VideoInfoError, W as WavInfo, q as WavInfoError, r as inspectGifFrames, s as readExifData, t as readFlacInfo, u as readIcoInfo, v as readId3Tags, w as readImageInfo, x as readPdfMetadata, y as readPdfPageDimensions, z as readVideoInfo, A as readWavInfo } from '../media-BUvwm4wU.js';
@@ -1,2 +1,2 @@
1
- export { readExifData, readFlacInfo, readIcoInfo, readId3Tags, readImageInfo, readPdfMetadata, readPdfPageDimensions, readVideoInfo, readWavInfo } from '../chunk-L6V4W4SU.js';
1
+ export { inspectGifFrames, readExifData, readFlacInfo, readIcoInfo, readId3Tags, readImageInfo, readPdfMetadata, readPdfPageDimensions, readVideoInfo, readWavInfo } from '../chunk-226EH3ZI.js';
2
2
  import '../chunk-MLKGABMK.js';
@@ -2623,6 +2623,53 @@ function parseClientHintHeaders(rawHeaders) {
2623
2623
  }
2624
2624
  return { hints, unrecognized };
2625
2625
  }
2626
+ function encodeRFC5987ValueChars(value) {
2627
+ return encodeURIComponent(value).replace(/[!'()*]/g, (c) => "%" + c.charCodeAt(0).toString(16).toUpperCase());
2628
+ }
2629
+ function buildContentDisposition(options = {}) {
2630
+ const type = options.type ?? "attachment";
2631
+ if (type !== "inline" && type !== "attachment") return { error: 'type must be "inline" or "attachment"' };
2632
+ if (!options.filename) return { header: type, type, filenameEncoded: false };
2633
+ const filename = options.filename;
2634
+ if (filename.includes("/") || filename.includes("\\")) return { error: "filename must not contain path separators" };
2635
+ const isAscii = /^[\x20-\x7e]*$/.test(filename);
2636
+ const asciiFallback = filename.replace(/[^\x20-\x7e]/g, "_").replace(/(["\\])/g, "\\$1");
2637
+ let header = `${type}; filename="${asciiFallback}"`;
2638
+ let filenameEncoded = false;
2639
+ if (!isAscii) {
2640
+ header += `; filename*=UTF-8''${encodeRFC5987ValueChars(filename)}`;
2641
+ filenameEncoded = true;
2642
+ }
2643
+ return { header, type, filename, filenameEncoded };
2644
+ }
2645
+ function parseContentDisposition(header) {
2646
+ if (typeof header !== "string" || header.trim() === "") return { error: "header is required" };
2647
+ const parts = header.split(";").map((p) => p.trim()).filter(Boolean);
2648
+ const type = parts[0]?.toLowerCase();
2649
+ if (!type) return { error: "Could not parse a disposition type from the header" };
2650
+ const params = {};
2651
+ for (let i = 1; i < parts.length; i++) {
2652
+ const eq = parts[i].indexOf("=");
2653
+ if (eq === -1) continue;
2654
+ const key = parts[i].slice(0, eq).trim().toLowerCase();
2655
+ let value = parts[i].slice(eq + 1).trim();
2656
+ if (value.startsWith('"') && value.endsWith('"')) value = value.slice(1, -1).replace(/\\(.)/g, "$1");
2657
+ params[key] = value;
2658
+ }
2659
+ let filename = params.filename;
2660
+ let filenameIsExtended = false;
2661
+ if (params["filename*"]) {
2662
+ const match = params["filename*"].match(/^([^']*)'([^']*)'(.*)$/);
2663
+ if (match) {
2664
+ try {
2665
+ filename = decodeURIComponent(match[3]);
2666
+ filenameIsExtended = true;
2667
+ } catch {
2668
+ }
2669
+ }
2670
+ }
2671
+ return { type, filename, filenameIsExtended, params };
2672
+ }
2626
2673
 
2627
2674
  exports.CLIENT_HINTS = CLIENT_HINTS;
2628
2675
  exports.DNS_RECORD_TYPES = DNS_RECORD_TYPES;
@@ -2634,6 +2681,7 @@ exports.STATUS_CODES = STATUS_CODES;
2634
2681
  exports.analyzeEmailHeaders = analyzeEmailHeaders;
2635
2682
  exports.buildCacheControl = buildCacheControl;
2636
2683
  exports.buildClientHints = buildClientHints;
2684
+ exports.buildContentDisposition = buildContentDisposition;
2637
2685
  exports.buildDnsQueryUrl = buildDnsQueryUrl;
2638
2686
  exports.buildGeoUrl = buildGeoUrl;
2639
2687
  exports.buildLinkHeader = buildLinkHeader;
@@ -2658,6 +2706,7 @@ exports.isValidIp = isValidIp;
2658
2706
  exports.isValidIpv4 = isValidIpv4;
2659
2707
  exports.isValidIpv6 = isValidIpv6;
2660
2708
  exports.parseClientHintHeaders = parseClientHintHeaders;
2709
+ exports.parseContentDisposition = parseContentDisposition;
2661
2710
  exports.parseContentRangeHeader = parseContentRangeHeader;
2662
2711
  exports.parseDnsResponse = parseDnsResponse;
2663
2712
  exports.parseGeoResponse = parseGeoResponse;
@@ -1 +1 @@
1
- export { A as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, a as CacheControlDirective, b as CacheControlOptions, c as CacheControlResult, d as ClientHintDef, e as ClientHintValueType, f as ClientHintsBuildResult, g as ClientHintsParseResult, h as ContentRangeResult, i as CookieAttributes, j as CookieCheckResult, D as DNS_RECORD_TYPES, k as DnsRecord, l as DnsRecordType, m as DnsResponse, E as EmailHeaderAnalysis, o as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, p as HarEntry, q as HarParseResult, r as HarSummary, s as HeaderCategory, t as HttpHeader, I as Ipv6AddressType, u as Ipv6ParseResult, L as LINK_REL_VALUES, v as LinkHeaderEntry, w as LinkHeaderEntryInput, x as LinkHeaderResult, y as LinkRel, M as ManifestIconInfo, z as ManifestIssue, F as ManifestValidationResult, P as PERMISSIONS_POLICY_FEATURES, J as ParsedClientHint, K as ParsedDnsResult, N as ParsedGeoResult, O as PermissionsPolicyDirective, Q as PermissionsPolicyFeatureInput, R as PermissionsPolicyResult, S as REFERRER_POLICY_VALUES, T as RangeEntry, U as RangeEntryInput, V as RangeHeaderResult, W as ReceivedHop, X as ReferrerPolicyEntry, Y as ReferrerPolicyResult, Z as ReferrerPolicyValue, _ as RobotsGroup, $ as RobotsIssue, a0 as RobotsRule, a1 as RobotsValidationResult, a2 as STATUS_CODES, a3 as SameSiteValue, a4 as SitemapIndexEntry, a5 as SitemapIssue, a6 as SitemapUrlEntry, a7 as SitemapValidationResult, a8 as StatusCode, a9 as UaDeviceType, aa as UserAgentInfo, ab as VaryHeaderEntry, ac as VaryHeaderResult, ad as analyzeEmailHeaders, ae as buildCacheControl, af as buildClientHints, ag as buildDnsQueryUrl, ah as buildGeoUrl, ai as buildLinkHeader, aj as buildMapUrl, ak as buildPermissionsPolicy, al as buildRangeHeader, am as buildReferrerPolicy, an as buildVaryHeader, ao as checkSetCookieHeader, ap as countryCodeToFlag, aq as formatCoordinates, ar as formatTtl, as as getByCategory, at as getHeader, au as getHeadersByCategory, av as getStatusByCategory, aw as getStatusCode, ax as isClientError, ay as isServerError, az as isSuccess, aA as isValidIp, aB as isValidIpv4, aC as isValidIpv6, aD as parseClientHintHeaders, aE as parseContentRangeHeader, aF as parseDnsResponse, aG as parseGeoResponse, aH as parseHar, aI as parseIpv6Address, aJ as parsePermissionsPolicy, aK as parseUserAgent, aL as parseVaryHeader, aM as searchHeaders, aN as searchStatusCodes, aO as statusCodeToText, aP as typeNumberToLabel, aQ as validateDomain, aR as validateHeaderName, aS as validateHeaderValue, aT as validateManifest, aU as validateRobotsTxt, aV as validateSitemap } from '../network-Bzm1tjMA.cjs';
1
+ export { A as AuthResultEntry, B as BuildRangeHeaderOptions, C as CLIENT_HINTS, a as CacheControlDirective, b as CacheControlOptions, c as CacheControlResult, d as ClientHintDef, e as ClientHintValueType, f as ClientHintsBuildResult, g as ClientHintsParseResult, h as ContentDispositionBuildOptions, i as ContentDispositionBuildResult, j as ContentDispositionParseResult, k as ContentRangeResult, l as CookieAttributes, m as CookieCheckResult, D as DNS_RECORD_TYPES, o as DnsRecord, p as DnsRecordType, q as DnsResponse, E as EmailHeaderAnalysis, r as EmailHeaderField, G as GeoResult, H as HTTP_HEADERS, s as HarEntry, t as HarParseResult, u as HarSummary, v as HeaderCategory, w as HttpHeader, I as Ipv6AddressType, x as Ipv6ParseResult, L as LINK_REL_VALUES, y as LinkHeaderEntry, z as LinkHeaderEntryInput, F as LinkHeaderResult, J as LinkRel, M as ManifestIconInfo, K as ManifestIssue, N as ManifestValidationResult, P as PERMISSIONS_POLICY_FEATURES, O as ParsedClientHint, Q as ParsedDnsResult, R as ParsedGeoResult, S as PermissionsPolicyDirective, T as PermissionsPolicyFeatureInput, U as PermissionsPolicyResult, V as REFERRER_POLICY_VALUES, W as RangeEntry, X as RangeEntryInput, Y as RangeHeaderResult, Z as ReceivedHop, _ as ReferrerPolicyEntry, $ as ReferrerPolicyResult, a0 as ReferrerPolicyValue, a1 as RobotsGroup, a2 as RobotsIssue, a3 as RobotsRule, a4 as RobotsValidationResult, a5 as STATUS_CODES, a6 as SameSiteValue, a7 as SitemapIndexEntry, a8 as SitemapIssue, a9 as SitemapUrlEntry, aa as SitemapValidationResult, ab as StatusCode, ac as UaDeviceType, ad as UserAgentInfo, ae as VaryHeaderEntry, af as VaryHeaderResult, ag as analyzeEmailHeaders, ah as buildCacheControl, ai as buildClientHints, aj as buildContentDisposition, ak as buildDnsQueryUrl, al as buildGeoUrl, am as buildLinkHeader, an as buildMapUrl, ao as buildPermissionsPolicy, ap as buildRangeHeader, aq as buildReferrerPolicy, ar as buildVaryHeader, as as checkSetCookieHeader, at as countryCodeToFlag, au as formatCoordinates, av as formatTtl, aw as getByCategory, ax as getHeader, ay as getHeadersByCategory, az as getStatusByCategory, aA as getStatusCode, aB as isClientError, aC as isServerError, aD as isSuccess, aE as isValidIp, aF as isValidIpv4, aG as isValidIpv6, aH as parseClientHintHeaders, aI as parseContentDisposition, aJ as parseContentRangeHeader, aK as parseDnsResponse, aL as parseGeoResponse, aM as parseHar, aN as parseIpv6Address, aO as parsePermissionsPolicy, aP as parseUserAgent, aQ as parseVaryHeader, aR as searchHeaders, aS as searchStatusCodes, aT as statusCodeToText, aU as typeNumberToLabel, aV as validateDomain, aW as validateHeaderName, aX as validateHeaderValue, aY as validateManifest, aZ as validateRobotsTxt, a_ as validateSitemap } from '../network-BG0XDx5W.cjs';