import { type LinkDefinition } from '@dosgato/templating'; export declare function getHostname(urlString: string): string | undefined; export interface SingleValueIndex { name: string; value: string; } export type LinkIndexTypes = 'link_asset_id' | 'link_asset_path' | 'link_asset_checksum' | 'link_page_linkId' | 'link_page_path' | 'link_hostname' | 'link_data_id' | 'link_data_path' | 'link_assetfolder_id' | 'link_assetfolder_path' | 'link_datafolder_id' | 'link_datafolder_path'; export declare function processLink(link: LinkDefinition): SingleValueIndex[]; export declare function parseLinks(links?: (LinkDefinition | string | undefined)[], templateKey?: string): LinkDefinition[]; export declare function normalizeForSearch(str: string): string; export declare function splitWords(normalized: string): string[]; export declare function searchCodes(word: string): string[]; export declare function quadgrams(word: string): string[]; export declare function ngrams(word: string, n: number): string[]; /** * Strip the query string and hash before indexing a URL as fulltext. They are often full of * opaque ids and tracking parameters that would add a lot of unique n-grams to the index. */ export declare function urlForFulltext(url: string): string; export declare function extractFromHtml(html: string): { links: LinkDefinition[]; texts: string[]; };