import type { CachedFetch, ExtractedContent } from './types'; export declare function wordCount(text: string): number; export declare function frontmatter(metadata: Record): string; export declare function trimBlankRuns(input: string): string; export declare function cleanHeadingText(input: string): string; export declare function cleanFetchedMarkdown(input: string): string; export declare function cleanFetchedText(input: string): string; export declare function escapeHtml(input: string): string; export declare function withTruncationMarker(content: string, format: 'text' | 'markdown' | 'html', truncated: boolean): string; export declare function joinRenderedContent(metadata: string, content: string, format: 'text' | 'markdown' | 'html'): string; export declare function renderMessageForFormat(content: string, format: 'text' | 'markdown' | 'html'): string; export declare function buildRedirectResultMessage(originalUrl: string, redirectUrl: string, statusCode: number): string; export declare function buildLlmsRequiredMessage(originalUrl: string, reason?: string): string; export declare function extractFromHtml(html: string, finalUrl: string, extractMain: boolean): Promise; export declare function inferCanonicalUrlFromText(content: string, finalUrl: string): string | undefined; export declare function extractHeadingsFromMarkdown(content: string): string[] | undefined; export declare function detectQualitySignals(fetchResult: Pick): string[]; export declare function pickContent(fetchResult: CachedFetch, format: 'text' | 'markdown' | 'html'): string;