import { Rt as OrderingItem, Z as DocsObservabilityConfig, _ as DocsAnalyticsConfig, pt as DocsSearchConfig, q as DocsMcpConfig, yt as DocsSearchSourcePage } from "./types-DooUSWkW.mjs"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; //#region src/mcp.d.ts interface DocsMcpPage { slug: string; url: string; title: string; description?: string; related?: DocsSearchSourcePage["related"]; icon?: string; sourcePath?: string; lastModified?: string; content: string; rawContent?: string; agentContent?: string; agentRawContent?: string; agentFallbackContent?: string; agentFallbackRawContent?: string; } interface DocsMcpCodeExample { id: string; page: { slug: string; url: string; title: string; description?: string; sourcePath?: string; lastModified?: string; }; language?: string; title?: string; framework?: string; packageManager?: string; runnable: boolean; meta: Record; code: string; } interface DocsMcpDocsPageSummary { slug: string; url: string; title: string; description?: string; icon?: string; sourcePath?: string; lastModified?: string; } interface DocsMcpDocsSection { slug: string; title: string; url?: string; description?: string; icon?: string; pageCount: number; pages: DocsMcpDocsPageSummary[]; sections: DocsMcpDocsSection[]; } interface DocsMcpDocsList { section?: string; resultCount: number; sectionCount: number; pages: DocsMcpDocsPageSummary[]; rootPages: DocsMcpDocsPageSummary[]; sections: DocsMcpDocsSection[]; } interface DocsMcpConfigSchemaOption { path: string; name: string; type: string; default?: string | boolean | number | null; description: string; docs?: string; values?: string[]; children?: DocsMcpConfigSchemaOption[]; } interface DocsMcpConfigSchema { schemaVersion: 1; configFile: "docs.config.ts"; description: string; filters?: { option?: string; query?: string; }; resultCount: number; options: DocsMcpConfigSchemaOption[]; examples: Array<{ title: string; code: string; }>; } interface DocsMcpPageNode { type: "page"; name: string; url: string; icon?: string; description?: string; } interface DocsMcpFolderNode { type: "folder"; name: string; icon?: string; index?: DocsMcpPageNode; children: DocsMcpNavigationNode[]; } type DocsMcpNavigationNode = DocsMcpPageNode | DocsMcpFolderNode; interface DocsMcpNavigationTree { name: string; children: DocsMcpNavigationNode[]; } interface DocsMcpSource { entry?: string; siteTitle?: string; getPages(locale?: string): DocsMcpPage[] | Promise; getNavigation(locale?: string): DocsMcpNavigationTree | Promise; } interface DocsMcpResolvedConfig { enabled: boolean; route: string; name: string; version: string; tools: { listDocs: boolean; listPages: boolean; readPage: boolean; searchDocs: boolean; getNavigation: boolean; getCodeExamples: boolean; getConfigSchema: boolean; }; } interface DocsMcpHttpHandlers { GET: (context: { request: Request; }) => Promise; POST: (context: { request: Request; }) => Promise; DELETE: (context: { request: Request; }) => Promise; } interface CreateDocsMcpServerOptions { source: DocsMcpSource; mcp?: boolean | DocsMcpConfig; search?: boolean | DocsSearchConfig; analytics?: boolean | DocsAnalyticsConfig; observability?: boolean | DocsObservabilityConfig; defaultName?: string; defaultVersion?: string; } interface CreateFilesystemDocsMcpSourceOptions { rootDir?: string; entry?: string; contentDir?: string; siteTitle?: string; ordering?: "alphabetical" | "numeric" | OrderingItem[]; } declare function normalizeDocsMcpRoute(route?: string): string; declare function resolveDocsMcpConfig(mcp?: boolean | DocsMcpConfig, defaults?: { defaultName?: string; defaultVersion?: string; defaultRoute?: string; }): DocsMcpResolvedConfig; declare function createFilesystemDocsMcpSource(options?: CreateFilesystemDocsMcpSourceOptions): DocsMcpSource; declare function createDocsMcpServer(options: CreateDocsMcpServerOptions): Promise; declare function createDocsMcpHttpHandler(options: CreateDocsMcpServerOptions): DocsMcpHttpHandlers; declare function runDocsMcpStdio(options: CreateDocsMcpServerOptions): Promise; //#endregion export { DocsMcpCodeExample, DocsMcpConfigSchema, DocsMcpConfigSchemaOption, DocsMcpDocsList, DocsMcpDocsPageSummary, DocsMcpDocsSection, DocsMcpFolderNode, DocsMcpHttpHandlers, DocsMcpNavigationNode, DocsMcpNavigationTree, DocsMcpPage, DocsMcpPageNode, DocsMcpResolvedConfig, DocsMcpSource, createDocsMcpHttpHandler, createDocsMcpServer, createFilesystemDocsMcpSource, normalizeDocsMcpRoute, resolveDocsMcpConfig, runDocsMcpStdio };