UNPKG

vitepress-plugin-llmstxt

Version:

VitePress plugin to generate llms.txt files automatically

14 lines (11 loc) 578 B
import { Route, useData } from 'vitepress'; import { L as LlmsClientConfig } from './types-K9HlFBVV.js'; /** * Gets the LLMs data for the current route. * * @param {Route} route - The current route. * @param {ReturnType<typeof useData>} data - The VitePress data. * @returns {LLMsRouteData | undefined} The LLMs data for the current route. */ declare const useLLMsRouteData: (route: Route, data: ReturnType<typeof useData>) => NonNullable<LlmsClientConfig["pageData"]>[number] | undefined; export { LlmsClientConfig, useLLMsRouteData };