import { t as index_d_exports } from "./index-BUoLnbUQ.mjs"; import { S as ResolvedDocsConfig, _ as DocsDevOptions, a as build, b as Maintainer, c as withBase, d as loadDocsConfig, f as loadDocsConfigAsync, g as DocsBuildOptions, h as ConfigValidationIssue, i as startDev, l as defineConfig, m as resolveDocsConfigAsync, n as docsPreset, o as reportConfigIssues, p as resolveDocsConfig, r as preview, s as validateConfig, t as DocsPreset, u as defineDocsConfig, v as DocsUserConfig, x as ResolvedCopyright, y as FooterLinks } from "./preset-cCbbz8-R.mjs"; import { n as createDocsMcpServer, r as startDocsMcpServer, t as DocsMcpServerOptions } from "./server-mPNqf3qZ.mjs"; import { a as DocListing, i as DocNotFound, n as resolveChrome, o as DocHome, r as DocPage, s as InstallSnippet, t as ResolvedChrome } from "./theme-DR68q3fo.mjs"; import { C as DocsRootMeta, T as DocsSectionMeta, l as DocsFrontmatter } from "./docs-content-PQkJrAzI.mjs"; import { Heading } from "@pagesmith/core/schemas"; import { CreateLoggerOptions, LogLevel, LogMethod, Logger, ValidateContentSummary, createLogger, defaultLogger } from "@pagesmith/core"; import { SiteNavItem as NavItem, SitePageLink as PrevNextLink, SiteSidebarItem as SidebarItem, SiteSidebarSection as SidebarSection } from "@pagesmith/site/components"; import { BuildValidationIssue, BuildValidationResult, BuildValidationResult as BuildValidationResult$1, BuildValidatorOptions, runBuildValidation, validateBuildOutput } from "@pagesmith/site/build-validator"; //#region src/content.d.ts type DocsPage = { title: string; routePath: string; contentSlug: string; section?: string; frontmatter: DocsFrontmatter; html: string; headings: Heading[]; sourcePath: string; isHome: boolean; layoutName: string; lastUpdated?: string; }; type SiteModel = { navItems: NavItem[]; sidebarBySection: Map; pageByPath: Map; /** Maps folder slugs to resolved URL paths (with basePath). Folders without an index page resolve to their first child page. */ folderPaths: Map; rootMeta?: DocsRootMeta; sectionMetas: Map; }; //#endregion //#region src/navigation.d.ts declare function buildSiteModel(config: ResolvedDocsConfig, pages: DocsPage[], rootMeta?: DocsRootMeta, sectionMetas?: Map): SiteModel; declare function getPrevNext(sidebarSections: SidebarSection[] | undefined, routePath: string): { prev?: PrevNextLink; next?: PrevNextLink; }; type DocsListingCard = { title: string; path: string; description?: string; publishedDate?: string; }; /** * Child pages under a section folder for listing layouts (excludes the section * index / landing page). Order matches sidebar ordering rules. */ declare function getDocsListingCards(section: string, pages: DocsPage[], basePath: string, sectionMeta?: DocsSectionMeta): DocsListingCard[]; declare function getSitePayload(config: ResolvedDocsConfig, model: SiteModel): { origin: string; basePath: string; homeLink: string | undefined; trailingSlash: boolean; maintainer: Maintainer | undefined; copyright: ResolvedCopyright | undefined; name: string; title: string; description: string; language: string; navItems: NavItem[]; footerLinks: FooterLinks; footerText: string | undefined; search: { enabled: boolean; showImages: boolean; showSubResults: boolean; pagefindFlags: string[]; }; sidebar: { collapsible: boolean; }; analytics: { googleAnalytics?: string; } | undefined; theme: { lightColor?: string; darkColor?: string; layouts?: Record; defaultColorScheme?: string; defaultTheme?: string; defaultTextSize?: string; } | undefined; socialImage: string | undefined; icon: string | false; favicon: string | boolean; faviconFallback: string | boolean; appleTouchIcon: string | boolean; }; //#endregion //#region src/validate.d.ts type DocsValidateOptions = { /** Explicit config path (defaults to pagesmith.config.json5 in cwd). */configPath?: string; /** Content dir override. */ contentDir?: string; /** Build output dir override. */ outDir?: string; /** Base path override. */ basePath?: string; /** Trailing-slash override. */ trailingSlash?: boolean; /** Skip content validation entirely. */ skipContent?: boolean; /** Skip build-output validation entirely. */ skipBuild?: boolean; /** Fetch external URLs to verify reachability. */ checkExternal?: boolean; /** Fetch timeout (ms). Default 10000. */ timeoutMs?: number; /** Fetch concurrency. Default 8. */ concurrency?: number; /** Print files with no issues to the content report. */ showClean?: boolean; /** * Whether to enforce that themed `` elements expose both a light * and a dark variant. Default: true (the docs preset renders themed * diagrams this way). */ requireThemeVariants?: boolean; /** * Whether to enforce raster `` fallbacks have webp+avif siblings. * Default: false (the docs content site largely uses SVG diagrams). */ requireRasterModernFormats?: boolean; /** * Directory names to exclude from build-output validation. Useful when the * docs output bundles sub-sites (e.g. `examples/`) with their own build * configuration. Default: `['examples']`. */ excludeBuildDirs?: string[]; /** * Filenames the build output must contain. Defaults to the standard docs * deliverables (`favicon.svg|favicon.ico`, `sitemap.xml`, `robots.txt`, * `llms.txt`, `llms-full.txt`). Pass `[]` to skip the check entirely. */ requiredOutputFiles?: Array; /** * When true, enforce that every page is reachable both at `path.html` and * `path/index.html` so links survive either trailing-slash routing mode. * Default: false. */ requireBothTrailingSlashForms?: boolean; /** * When true, non-image internal markdown links must resolve to another * markdown file (rather than an arbitrary asset). Default: false — most * docs sites intentionally link into passthrough assets. */ internalLinksMustBeMarkdown?: boolean; /** * When true, every internal page link must be authored as a relative * path ending in `.md` / `.mdx` (for example `./relative/README.md`). * Site-absolute URLs like `/guide/foo` and bare relative forms like * `./foo` / `./foo/` become errors. Default: true under the docs preset * so the source form is always a real, grep-able file path. */ requireCanonicalInternalLinks?: boolean; /** * When true, every image must carry non-empty alt text. Default: true. */ requireAltText?: boolean; /** * When true, fail if the markdown contains a raw `` HTML tag. * Default: true. */ forbidHtmlImgTag?: boolean; /** * When true, `-light`/`-dark` image references must appear as an adjacent * pair. Default: true. */ requireThemeVariantPairs?: boolean; /** * Path to a `content.config.{ts,mts,mjs,js}` file declaring typed * collections. When omitted, `validateDocs` looks for one in the project * root (the directory of the resolved pagesmith config) and then in the * current working directory. Pass `false` to disable auto-loading. */ contentConfig?: string | false; /** Stream console output while validating. Default true. */ verbose?: boolean; }; type DocsValidateResult = { config: ResolvedDocsConfig; content?: ValidateContentSummary; build?: BuildValidationResult$1; errors: number; warnings: number; passed: boolean; }; declare function validateDocs(options?: DocsValidateOptions): Promise; type DocFooter = index_d_exports.DocFooter; type DocHeader = index_d_exports.DocHeader; type DocSidebar = index_d_exports.DocSidebar; type DocTOC = index_d_exports.DocTOC; type Html = index_d_exports.Html; export { type BuildValidationIssue, type BuildValidationResult, type BuildValidatorOptions, type ConfigValidationIssue, type CreateLoggerOptions, DocFooter, DocHeader, DocHome, DocListing, DocNotFound, DocPage, DocSidebar, DocTOC, type DocsBuildOptions, type DocsDevOptions, type DocsMcpServerOptions, type DocsPage, type DocsPreset, type DocsRootMeta, type DocsSectionMeta, type DocsUserConfig, type DocsValidateOptions, type DocsValidateResult, Html, InstallSnippet, type LogLevel, type LogMethod, type Logger, type NavItem, type PrevNextLink, type ResolvedChrome, type ResolvedDocsConfig, type SidebarItem, type SidebarSection, type SiteModel, build, buildSiteModel, createDocsMcpServer, createLogger, defaultLogger, defineConfig, defineDocsConfig, docsPreset, getDocsListingCards, getPrevNext, getSitePayload, loadDocsConfig, loadDocsConfigAsync, preview, reportConfigIssues, resolveChrome, resolveDocsConfig, resolveDocsConfigAsync, runBuildValidation, startDev, startDocsMcpServer, validateBuildOutput, validateConfig, validateDocs, withBase }; //# sourceMappingURL=index.d.mts.map