import { HeadTag } from './stream/server.js'; import { MetaFlat, UnheadMeta, TemplateParams } from './types.js'; import { Unhead } from './client.js'; import { PropResolver } from './types.js'; import 'hookable'; declare const SelfClosingTags: Set; declare const DupeableTags: Set; declare const TagsWithInnerContent: Set; declare const HasElementTags: Set; declare const ValidHeadTags: Set; declare const UniqueTags: Set; declare const TagConfigKeys: Set; declare const ScriptNetworkEvents: Set; declare const UsesMergeStrategy: Set; declare const MetaTagsArrayable: Set; declare const TagPriorityAliases: { readonly critical: -8; readonly high: -1; readonly low: 2; }; /** Whether a resolved `meta` name or property is on the crawler tag list. */ declare function isCrawlerMetaKey(key: string): boolean; /** * Whether a resolved tag is on the crawler tag list of the `serverOnlyCrawlerTags` * build option: crawler `meta`, `link rel=canonical`, `link rel=alternate` with * `hreflang`, and JSON-LD scripts. */ declare function isCrawlerTag(tag: HeadTag): boolean; declare function isMetaArrayDupeKey(v: string): boolean; declare function dedupeKey(tag: T, skipContent?: boolean): string | undefined; declare function hashTag(tag: HeadTag): string; declare function hasOwn(object: object, key: PropertyKey): boolean; type MetaKeyType = 'name' | 'property' | 'http-equiv'; declare function resolveMetaKeyType(key: string): MetaKeyType; declare function resolveMetaKeyValue(key: string): string; declare function resolvePackedMetaObjectValue(value: any, key: string): string; declare function unpackMeta(input: T): UnheadMeta[]; declare function normalizeProps(tag: HeadTag, input: Record): HeadTag; declare function normalizeEntryToTags(input: any, propResolvers: PropResolver[]): HeadTag[]; interface ResolveTagsContext { tagMap: Map; tags: HeadTag[]; } interface ResolveTagsOptions { tagWeight?: (tag: HeadTag) => number; } declare function dedupeTags(ctx: ResolveTagsContext, contentKey?: (tag: HeadTag) => string | undefined): boolean; declare function resolveTitleTemplate(ctx: ResolveTagsContext, head: Unhead, adoption?: boolean): void; declare function sanitizeTags(tags: HeadTag[]): HeadTag[]; declare function resolveTags(head: Unhead, options?: ResolveTagsOptions, adoption?: boolean): HeadTag[]; declare function processTemplateParams(s: string, p: TemplateParams, sep?: string, isJson?: boolean): string; declare function walkResolver(val: any, resolve?: PropResolver, key?: string, skipPrim?: boolean): any; export { DupeableTags, HasElementTags, MetaTagsArrayable, ScriptNetworkEvents, SelfClosingTags, TagConfigKeys, TagPriorityAliases, TagsWithInnerContent, UniqueTags, UsesMergeStrategy, ValidHeadTags, dedupeKey, dedupeTags, hasOwn, hashTag, isCrawlerMetaKey, isCrawlerTag, isMetaArrayDupeKey, normalizeEntryToTags, normalizeProps, processTemplateParams, resolveMetaKeyType, resolveMetaKeyValue, resolvePackedMetaObjectValue, resolveTags, resolveTitleTemplate, sanitizeTags, unpackMeta, walkResolver }; export type { MetaKeyType, ResolveTagsContext, ResolveTagsOptions };