interface CodewrightConfig { codewright_version: string; project_name: string; stack: string; communication_language: string; output_folder: string; context_file: string; framework?: string; test_runner?: string; lint_tools?: string[]; project_language?: string; strict_mode?: boolean; } declare function loadConfig(cwd: string): CodewrightConfig; interface MemlogEntry { type: "decision" | "constraint" | "capability" | "assumption" | "question" | "direction" | "note" | "event"; text: string; by?: string; } interface MemlogData { frontmatter: Record; entries: MemlogEntry[]; } declare function init(workspace: string, fields: Record): void; declare function append(workspace: string, entry: MemlogEntry): void; declare function set(workspace: string, key: string, value: string): void; declare function read(workspace: string): MemlogData; declare function memlog(): { init: typeof init; append: typeof append; set: typeof set; read: typeof read; }; interface WriteOptions { cwd: string; outputFolder: string; subpath: string; filename: string; content: string; } declare function writeArtifact(opts: WriteOptions): string; interface SpecTemplateOptions { slug: string; topic: string; goal: string; capabilities: Array<{ id: string; text: string; }>; constraints: string[]; decisions: string[]; } declare function specTemplate(opts: SpecTemplateOptions): string; interface StoryTemplateOptions { story_id: string; story_title: string; phase: string; spec_name: string; } declare function storyTemplate(opts: StoryTemplateOptions): string; declare const AGENT_TARGETS: readonly ["codex", "claude", "gemini", "copilot", "opencode", "windsurf", "cline", "cursor"]; type AgentTarget = (typeof AGENT_TARGETS)[number]; type AgentAdapter = "canonical" | "skill-wrapper" | "cursor-command"; interface AgentDefinition { id: AgentTarget; label: string; adapter: AgentAdapter; aliases: readonly string[]; } declare const AGENT_DEFINITIONS: readonly AgentDefinition[]; declare function parseAgentTargets(value: string): AgentTarget[]; export { AGENT_DEFINITIONS, AGENT_TARGETS, type AgentAdapter, type AgentDefinition, type AgentTarget, type CodewrightConfig, type MemlogData, type MemlogEntry, loadConfig, memlog, parseAgentTargets, specTemplate, storyTemplate, writeArtifact };