import type { LlmsDoc } from '../core/content.js'; /** Site-level info for the LLM files: title, optional description, and origin. */ export type LlmsSite = { title: string; description?: string; /** * Absolute origin, e.g. `https://my-docs.dev`, used to make links absolute. * Without it the links stay site-relative. */ origin?: string; }; /** * Build an [llms.txt](https://llmstxt.org) index: the site title and * description, then a sectioned list of links to each page. Wire it into a * `src/routes/llms.txt/+server.ts` over the `svelte-docsmith/llms` module. * * ```ts * import { docs } from 'svelte-docsmith/llms'; * import { generateLlmsTxt } from 'svelte-docsmith'; * * export const prerender = true; * export function GET() { * const body = generateLlmsTxt({ title: 'My Docs', origin: 'https://my-docs.dev' }, docs); * return new Response(body, { headers: { 'content-type': 'text/plain; charset=utf-8' } }); * } * ``` */ export declare function generateLlmsTxt(site: LlmsSite, docs: LlmsDoc[]): string; /** * Build `llms-full.txt`: the site header followed by the full markdown of every * page, so an LLM can ingest the entire documentation in one request. Same * wiring as {@link generateLlmsTxt}, at `src/routes/llms-full.txt/+server.ts`. */ export declare function generateLlmsFullTxt(site: LlmsSite, docs: LlmsDoc[]): string;