import { type DocSlug } from './facts.js'; export interface DocPageRef { slug: string; title: string; url: string; canonical: string; } /** Extra machine-readable pages the docs tool can fetch besides the 14 doc pages. */ export declare const EXTRA_PAGES: { readonly index: { readonly title: "Agent guide (llms.txt)"; readonly url: string; readonly canonical: string; }; readonly openapi: { readonly title: "OpenAPI (summarised)"; readonly url: string; readonly canonical: string; }; }; export declare const PAGE_SLUGS: readonly string[]; /** Resolve a slug to its public URL; unknown slugs are rejected (no arbitrary URLs). */ export declare function pageRef(slug: string): DocPageRef; /** * Every public page ends with `---` + a one-line footer ("Realtime Avatar — … * Docs: … · Agent guide: …"). Strip that trailer; leave everything else intact. */ export declare function stripFooter(markdown: string): string; /** `- Updated: YYYY-MM-DD` from a page header, if present. */ export declare function updatedOn(markdown: string): string | null; /** Add one `#` to every heading outside fenced code so a page can nest under a skill's `##` section. */ export declare function demoteHeadings(markdown: string): string; /** Return one `## heading` section (until the next heading of the same or higher level), case-insensitive match. */ export declare function sectionByHeading(markdown: string, heading: string): string | null; /** Truncate to `maxChars` on a line boundary; reports whether anything was cut. */ export declare function clampText(text: string, maxChars: number): { text: string; truncated: boolean; }; export declare const PAGE_CACHE_MAX = 24; export declare const PAGE_FRESH_MS = 60000; /** Number of cached pages (tests and diagnostics). */ export declare function pageCacheSize(): number; /** Drop every cached page (tests). */ export declare function resetPageCache(): void; export interface FetchPageOptions { signal?: AbortSignal; timeoutMs: number; /** Monotonic clock override (tests). */ now?: () => number; } /** Fetch a public page's markdown (or llms.txt / openapi.json). Public, unauthenticated; cached by ETag. */ export declare function fetchPage(url: string, options: FetchPageOptions): Promise; /** A compact, model-friendly operation table derived from the public OpenAPI document. */ export declare function summarizeOpenApi(document: unknown): string; export declare function isDocSlug(value: string): value is DocSlug;