import type { DiscoveryContentValidator, DiscoveryUrlOriginMode } from './types.js'; export interface ValidateDiscoveryContentOptions { urlOrigin?: DiscoveryUrlOriginMode; canonicalBaseUrl?: string; } export declare function extractMarkdownLinks(content: string): Array<{ title: string; url: string; }>; export declare function extractLlmsTxtKeyPageMarkdownUrls(content: string, baseUrl: string): string[]; /** * Rewrite absolute URLs onto `targetBaseUrl` (same path + query + hash). * Used when discovery content lists a canonical origin but Deployment Checks smoke a pre-alias host. * Preserves array length/order; unparseable entries are left unchanged. */ export declare function rewriteUrlsToBase(urls: string[], targetBaseUrl: string): string[]; /** * Map extracted Key pages URLs to the host that live smoke should actually fetch. * When content is accepted under a canonical origin that differs from the deployment base, * spot-check the deployment under test (not live CDN/www still serving the previous alias). */ export declare function mapSpotCheckUrls(urls: string[], contentBaseUrl: string, deploymentBaseUrl: string): string[]; /** * Base URL used for URL-origin checks and extracting Key pages links from llms.txt. * Spot-checks rewrite those URLs onto the deployment host when this differs (see mapSpotCheckUrls). */ export declare function resolveDiscoveryContentBaseUrl(validator: DiscoveryContentValidator, content: string, deploymentBaseUrl: string, options?: ValidateDiscoveryContentOptions): string; export declare function validateDiscoveryContent(validator: DiscoveryContentValidator, content: string, deploymentBaseUrl: string, options?: ValidateDiscoveryContentOptions): string[]; export declare function contentTypeMatches(expected: string, actual: string | null): boolean; //# sourceMappingURL=validate-content.d.ts.map