import { HeadTag } from './stream/server.mjs'; import { MetaFlat, UnheadMeta, TemplateParams } from './types.mjs'; import { Unhead } from './client.mjs'; import { PropResolver } from './types.mjs'; 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; }; declare function isMetaArrayDupeKey(v: string): boolean; declare function dedupeKey(tag: T): 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): boolean; declare function resolveTitleTemplate(ctx: ResolveTagsContext, head: Unhead): void; declare function sanitizeTags(tags: HeadTag[]): HeadTag[]; declare function resolveTags(head: Unhead, options?: ResolveTagsOptions): HeadTag[]; declare function processTemplateParams(s: string, p: TemplateParams, sep?: string, isJson?: boolean): string; declare function walkResolver(val: any, resolve?: PropResolver, key?: string): any; export { DupeableTags, HasElementTags, MetaTagsArrayable, ScriptNetworkEvents, SelfClosingTags, TagConfigKeys, TagPriorityAliases, TagsWithInnerContent, UniqueTags, UsesMergeStrategy, ValidHeadTags, dedupeKey, dedupeTags, hasOwn, hashTag, isMetaArrayDupeKey, normalizeEntryToTags, normalizeProps, processTemplateParams, resolveMetaKeyType, resolveMetaKeyValue, resolvePackedMetaObjectValue, resolveTags, resolveTitleTemplate, sanitizeTags, unpackMeta, walkResolver }; export type { MetaKeyType, ResolveTagsContext, ResolveTagsOptions };