import { $ as DocsObservabilityEventInput, $t as SimpleDocsSearchConfig, A as DocsCloudApiKeyConfig, At as McpDocsSearchConfig, B as DocsCodeBlocksValidateConfig, Bt as PageFrontmatter, C as DocsAskAIActionData, Ct as FontStyle, D as DocsAskAIFeedbackMessage, Dt as LlmsTxtMaxCharsConfig, E as DocsAskAIFeedbackData, Et as LlmsTxtConfig, F as DocsCodeBlocksConfig, Ft as OpenDocsProviderId, G as DocsFeedbackValue, Gt as ResolvedDocsRelatedLink, H as DocsCodeBlocksValidationPolicy, Ht as PageSidebarFrontmatter, I as DocsCodeBlocksPlannerConfig, It as OpenDocsTarget, J as DocsMcpToolsConfig, Jt as SidebarFolderIndexBehavior, K as DocsI18nConfig, Kt as SidebarComponentProps, L as DocsCodeBlocksPlannerProvider, Lt as OpenGraphImage, M as DocsCloudFeatureConfig, Mt as OpenDocsConfig, N as DocsCloudPreviewConfig, Nt as OpenDocsProvider, O as DocsAskAIFeedbackValue, Ot as LlmsTxtMaxCharsMode, P as DocsCloudPublishConfig, Pt as OpenDocsProviderConfig, Q as DocsObservabilityEvent, Qt as SidebarTree, R as DocsCodeBlocksRunnerConfig, Rt as OrderingItem, S as DocsAnalyticsSource, St as FeedbackConfig, T as DocsAskAIFeedbackConfig, Tt as LastUpdatedConfig, U as DocsConfig, Ut as PageTwitter, V as DocsCodeBlocksValidationMode, Vt as PageOpenGraph, W as DocsFeedbackData, Wt as ReadingTimeConfig, X as DocsNav, Xt as SidebarNode, Y as DocsMetadata, Yt as SidebarFolderNode, Z as DocsObservabilityConfig, Zt as SidebarPageNode, _ as DocsAnalyticsConfig, _t as DocsSearchResult, a as ApiReferenceRenderer, at as DocsReviewScoreConfig, b as DocsAnalyticsEventType, bt as DocsSitemapConfig, c as ChangelogFrontmatter, ct as DocsRobotsRule, d as CustomDocsSearchConfig, dt as DocsSearchAdapterFactory, en as ThemeToggleConfig, et as DocsRelatedItem, f as DocsAgentFeedbackContext, ft as DocsSearchChunkingConfig, g as DocsAgentTraceStatus, gt as DocsSearchQuery, h as DocsAgentTraceEventType, ht as DocsSearchEmbeddingsConfig, i as ApiReferenceConfig, it as DocsReviewRulesConfig, j as DocsCloudConfig, jt as OGConfig, k as DocsAskAIMcpConfig, kt as LlmsTxtSectionConfig, l as CodeBlockCopyData, lt as DocsSearchAdapter, m as DocsAgentTraceEventInput, mt as DocsSearchDocument, n as AgentFeedbackConfig, nn as TypographyConfig, nt as DocsReviewCiMode, o as BreadcrumbConfig, ot as DocsReviewSeverity, p as DocsAgentFeedbackData, pt as DocsSearchConfig, q as DocsMcpConfig, qt as SidebarConfig, r as AlgoliaDocsSearchConfig, rn as UIConfig, rt as DocsReviewConfig, s as ChangelogConfig, st as DocsRobotsConfig, t as AIConfig, tn as TypesenseDocsSearchConfig, tt as DocsReviewCiConfig, u as CopyMarkdownConfig, ut as DocsSearchAdapterContext, v as DocsAnalyticsEvent, vt as DocsSearchResultType, w as DocsAskAIActionType, wt as GithubConfig, x as DocsAnalyticsInput, xt as DocsTheme, y as DocsAnalyticsEventInput, yt as DocsSearchSourcePage, z as DocsCodeBlocksRunnerProvider, zt as PageActionsConfig } from "./types-DooUSWkW.mjs"; import { $ as createDocsAgentTraceId, A as resolveDocsSitemapRequest, C as buildDocsSitemapManifest, D as renderDocsSitemapXml, E as renderDocsSitemapMarkdown, I as PromptAction, J as DOCS_AGENT_TRACE_EVENT_TYPES, L as PromptProviderChoice, O as resolveDocsSitemapConfig, Q as createDocsAgentTraceContext, R as SerializeOpenDocsProviderOptions, S as DocsSitemapResolvedConfig, T as readDocsSitemapManifestFromContentMap, X as ResolvedDocsAnalyticsConfig, Y as DocsAgentTraceContext, Z as ResolvedDocsObservabilityConfig, _ as DEFAULT_SITEMAP_XML_ROUTE, a as createMcpSearchAdapter, at as resolveDocsObservabilityConfig, b as DocsSitemapManifestPage, c as formatDocsAskAIPackageHints, d as resolveAskAISearchRequestConfig, et as emitDocsAgentTraceEvent, f as resolveSearchRequestConfig, g as DEFAULT_SITEMAP_MD_WELL_KNOWN_ROUTE, h as DEFAULT_SITEMAP_MD_ROUTE, i as createCustomSearchAdapter, it as resolveDocsAnalyticsConfig, j as toDocsSitemapMarkdownUrl, k as resolveDocsSitemapPageLastmod, l as inferDocsAskAIPackageHints, m as DEFAULT_SITEMAP_MD_DOCS_ROUTE, n as buildDocsSearchDocuments, nt as emitDocsObservabilityEvent, o as createSimpleSearchAdapter, p as DEFAULT_SITEMAP_MANIFEST_PATH, r as createAlgoliaSearchAdapter, rt as getDocsRequestAnalyticsProperties, s as createTypesenseSearchAdapter, t as buildDocsAskAIContext, tt as emitDocsAnalyticsEvent, u as performDocsSearch, v as DocsSitemapFormat, w as createDocsSitemapResponse, x as DocsSitemapPageInput, y as DocsSitemapManifest, z as SerializedOpenDocsProvider } from "./search-vwey5r8r.mjs"; import { DocsMcpPage, DocsMcpResolvedConfig } from "./mcp.mjs"; //#region src/define-docs.d.ts /** * Define docs configuration. Validates and returns the config. */ declare function defineDocs(config: DocsConfig): DocsConfig; //#endregion //#region src/changelog.d.ts interface ResolvedChangelogConfig { enabled: boolean; path: string; contentDir: string; title: string; description?: string; search: boolean; actionsComponent?: unknown; } interface ChangelogEntrySummary extends ChangelogFrontmatter { slug: string; date: string; url: string; } declare function resolveChangelogConfig(value: DocsConfig["changelog"]): ResolvedChangelogConfig; //#endregion //#region src/utils.d.ts /** * Deep merge utility for theme overrides. * Merges objects recursively; later values override earlier ones. */ declare function deepMerge>(target: T, ...sources: Partial[]): T; //#endregion //#region src/create-theme.d.ts /** * Create a theme preset factory. * * Returns a function that accepts optional overrides and deep-merges them * with the base theme defaults. This is the same pattern used by the * built-in `fumadocs()`, `darksharp()`, and `pixelBorder()` presets. * * @param baseTheme - The default theme configuration * @returns A factory function `(overrides?) => DocsTheme` * * @example * ```ts * import { createTheme } from "@farming-labs/docs"; * * export const myTheme = createTheme({ * name: "my-theme", * ui: { * colors: { primary: "#6366f1" }, * layout: { contentWidth: 800 }, * }, * }); * ``` */ declare function createTheme(baseTheme: DocsTheme): (overrides?: Partial) => DocsTheme; /** * Extend an existing theme preset with additional defaults. * * Useful when you want to build on top of an existing theme (e.g. fumadocs) * rather than starting from scratch. * * @example * ```ts * import { extendTheme } from "@farming-labs/docs"; * import { fumadocs } from "@farming-labs/theme/default"; * * // Start with fumadocs defaults, override some values * export const myTheme = extendTheme(fumadocs(), { * name: "my-custom-fumadocs", * ui: { colors: { primary: "#22c55e" } }, * }); * ``` */ declare function extendTheme(baseTheme: DocsTheme, extensions: Partial): DocsTheme; //#endregion //#region src/i18n.d.ts interface ResolvedDocsI18n { locales: string[]; defaultLocale: string; } interface DocsPathMatch { /** Slug path relative to the docs root (no leading slash). */ slug: string; /** Entry path used for URLs (no locale segment). */ entryPath: string; } declare function resolveDocsI18n(config?: DocsI18nConfig | null): ResolvedDocsI18n | null; declare function resolveDocsLocale(searchParams: URLSearchParams, i18n?: ResolvedDocsI18n | null): string | undefined; declare function resolveDocsPath(pathname: string, entry: string): DocsPathMatch; //#endregion //#region src/metadata.d.ts interface DocsStructuredDataBreadcrumb { name: string; url: string; } interface DocsPageStructuredDataInput { title: string; description?: string; url: string; baseUrl?: string; entry?: string; dateModified?: string; breadcrumbs?: DocsStructuredDataBreadcrumb[]; } /** * Resolve page title using metadata titleTemplate. * %s is replaced with page title. */ declare function resolveTitle(pageTitle: string, metadata?: DocsMetadata): string; /** * Resolve OG image URL for a page. * Prefers page.openGraph.images[0], then page.ogImage, then config endpoint/default. */ declare function resolveOGImage(page: PageFrontmatter, ogConfig?: OGConfig, baseUrl?: string): string | undefined; /** * Build the Open Graph metadata object for a page. * When the page has openGraph in frontmatter, uses it (with title/description filled from page if omitted). * Otherwise uses ogImage or config (dynamic endpoint / defaultImage). */ declare function buildPageOpenGraph(page: Pick, ogConfig?: OGConfig, baseUrl?: string): PageOpenGraph | undefined; /** * Build the Twitter card metadata object for a page. * When the page has twitter in frontmatter, uses it. * Otherwise builds from ogImage or config (dynamic endpoint). */ declare function buildPageTwitter(page: Pick, ogConfig?: OGConfig, baseUrl?: string): PageTwitter | undefined; /** * Resolve the public docs site URL from existing agent-facing config. * * The framework intentionally reuses `sitemap.baseUrl`, `llmsTxt.baseUrl`, * `robots.baseUrl`, or `ai.docsUrl` instead of requiring another setting. */ declare function resolveDocsMetadataBaseUrl(config: DocsConfig): string | undefined; /** * Build Schema.org JSON-LD for a docs page. * * The shape follows Vercel's agent readability guidance: a `TechArticle` * with title, description, canonical URL, freshness, and breadcrumbs. */ declare function buildDocsPageStructuredData(input: DocsPageStructuredDataInput): Record; /** * Serialize Schema.org JSON-LD for safe insertion into a `