import type { SemanticGraph, WorkspaceSource } from '../compiler.js'; import { type ProjectionResult } from '../projection.js'; import { type RequirementsTraceabilityMatrix } from '../rtm.js'; import { type ResponsibilityMatrix } from '../responsibility.js'; import { type GovernanceLog } from '../governance.js'; import { type Compiled, type ToolResult, type ToolWorkspace } from './workspace.js'; export declare const briefFileName: (id: string) => string; /** `yarramate export markdown `: the view rendered as prose. */ export declare const exportMarkdown: (workspace: ToolWorkspace, projection: string) => ToolResult<{ readonly markdown: string; readonly result: ProjectionResult; }>; /** `yarramate export graph `: the compiled semantic graph as JSON text. */ export declare const exportGraph: (workspace: ToolWorkspace) => ToolResult<{ readonly json: string; readonly graph: SemanticGraph; }>; export interface BriefsOptions { /** Approximate token budget per brief. */ readonly budget?: number; } export interface ExportedBriefs { /** `INDEX.md` first, then one file per concept, in the order the CLI writes them. */ readonly files: readonly { readonly path: string; readonly markdown: string; }[]; readonly concepts: number; } /** `yarramate export briefs [--budget]`: one brief per subject, plus the index. */ export declare const exportBriefs: (workspace: ToolWorkspace, projection: string, options?: BriefsOptions) => ToolResult; /** * The briefs of an already evaluated projection: what `exportBriefs` does * once it has the view, shared with the CLI's git-derived review slice. */ export declare const briefsFromResult: (compiled: Compiled, result: ProjectionResult, options?: BriefsOptions) => ExportedBriefs; /** `yarramate export rtm `: RTM.md and rtm.json, unwritten. */ export declare const exportRtm: (workspace: ToolWorkspace) => ToolResult<{ readonly markdown: string; readonly rtm: RequirementsTraceabilityMatrix; }>; /** * `yarramate export responsibility `: the RACI matrix over * the projection's subjects (ADR 0159), with the markdown a person reads. * Columns are every person the whole model holds, so an idle person is * idle against these rows, not absent from them. */ export declare const exportResponsibility: (workspace: ToolWorkspace, projection: string) => ToolResult<{ readonly markdown: string; readonly matrix: ResponsibilityMatrix; }>; /** * `yarramate export governance `: the RAID log's risks and assumptions * as the model holds them (ADR 0160), with the markdown a person reads. * Whole-workspace, like the RTM: a risk is a risk wherever it sits. */ export declare const exportGovernance: (workspace: ToolWorkspace) => ToolResult<{ readonly markdown: string; readonly log: GovernanceLog; }>; /** * `yarramate export likec4 `: the generated * project as files, unwritten. `project` is the store path of the project * definition; the views, subject mapping and kind mapping it names resolve * relative to its directory, as the CLI resolves them. Git overlays * (`--changed`) are the CLI's own. */ export declare const exportLikeC4: (workspace: ToolWorkspace, project: string) => ToolResult<{ readonly files: readonly WorkspaceSource[]; }>; /** * `yarramate export xlsx `: the workbook bytes, with the * same provenance the CLI stamps (the package version, a sha256 of every * compiler source, the kinds and statuses the profile admits). */ export declare const exportWorkbook: (workspace: ToolWorkspace, projection: string) => ToolResult<{ readonly bytes: Uint8Array; readonly filename: string; }>;