import type { ContentNegotiationResult } from '@mdream/js/negotiate'; import type { H3Event } from 'h3'; import type { ModulePublicRuntimeConfig } from '../../module.js'; export { toMarkdownPath } from '../markdown-path.js'; export declare function negotiateRepresentation(event: H3Event): ContentNegotiationResult; export declare function getMarkdownRenderInfo(event: H3Event, explicitOnly?: boolean): { path: string; isExplicit: boolean; negotiation: ContentNegotiationResult; } | { notAcceptable: true; } | null; export declare function clientPrefersMarkdown(event: H3Event): boolean; export declare function extractLastUpdated(html: string): string | undefined; interface ConvertHtmlOptions { /** Extract updatedAt from meta tags */ extractUpdatedAt?: boolean; /** Call runtime hooks (ai-ready:mdreamConfig, ai-ready:page:markdown) */ hooks?: { route: string; event: H3Event; }; /** Extra fields to inject at the root of mdream's emitted YAML frontmatter */ additionalFrontmatter?: Record; } export declare function convertHtmlToMarkdown(html: string, url: string, mdreamOptions: ModulePublicRuntimeConfig['mdreamOptions'], opts?: ConvertHtmlOptions): Promise<{ updatedAt?: string | undefined; markdown: string; title: string; description: string; headings: Record[]; metaKeywords: string; textContent: string; }>;