import { Command } from "commander"; type DocsMdxMode = "strict" | "lossy"; interface DocsBaseOptions { readonly cwd?: string; readonly excludedFilenames?: readonly string[]; readonly mdxMode?: DocsMdxMode; readonly outputDir?: string; readonly packagesDir?: string; readonly workspaceRoot?: string; } interface ExecuteCheckCommandOptions extends DocsBaseOptions {} interface ExecuteSyncCommandOptions extends DocsBaseOptions {} type DocsExportTarget = "packages" | "llms" | "llms-full" | "all"; interface ExecuteExportCommandOptions extends DocsBaseOptions { readonly llmsFile?: string; readonly llmsFullFile?: string; readonly target?: DocsExportTarget | string; } interface DocsCommandIo { readonly err: (line: string) => void; readonly out: (line: string) => void; } interface CreateDocsCommandOptions { readonly commandName?: string; readonly io?: { readonly out?: (line: string) => void; readonly err?: (line: string) => void; }; } interface DocsResultLike { readonly error: { readonly message: string; }; readonly isErr: () => boolean; readonly value: TValue; } interface DocsMapLike { readonly entries: readonly unknown[]; } interface DocsModule { createDocsCommand: (options?: CreateDocsCommandOptions) => Command; executeCheckCommand: (options: ExecuteCheckCommandOptions, io: DocsCommandIo) => Promise; executeExportCommand: (options: ExecuteExportCommandOptions, io: DocsCommandIo) => Promise; executeSyncCommand: (options: ExecuteSyncCommandOptions, io: DocsCommandIo) => Promise; generateDocsMap: (options: { readonly workspaceRoot: string; }) => Promise>; generatePackageListSection: (workspaceRoot: string) => Promise; replaceSentinelSection: (input: string, sentinelId: string, replacement: string) => string; } /** * Load docs command module with source-first resolution in monorepo development. */ declare function loadDocsModule(): Promise; export { ExecuteCheckCommandOptions, ExecuteSyncCommandOptions, DocsExportTarget, ExecuteExportCommandOptions, DocsCommandIo, CreateDocsCommandOptions, DocsModule, loadDocsModule };