export type StepSection = { readonly number: string; readonly title: string; readonly body: string; readonly kind: "step" | "requirement"; }; export type RequirementSourceKind = "file" | "prompt"; export type RequirementSource = { readonly kind: RequirementSourceKind; readonly path: string; readonly label: string; }; export type BacklogTicket = { readonly order: number; readonly ticket: string; readonly title: string; readonly status: string; readonly path: string; }; export type BacklogParseResult = { readonly kind: "ok"; readonly tickets: readonly BacklogTicket[]; } | { readonly kind: "malformed"; readonly reason: string; }; export declare const WORK_DIR = ".persona/workflow/work"; export declare const HISTORY_DIR = ".persona/workflow/history"; export declare const BACKLOG_PATH = ".persona/workflow/backlog.md"; export declare const REQUIREMENTS_ANALYSIS_PATH = ".persona/workflow/requirements-analysis.md"; export declare const REQUIREMENTS_DIR = ".persona/workflow/requirements"; export declare const LATEST_REQUIREMENTS_PATH = ".persona/workflow/requirements/latest.md"; export declare const DRAFT_REQUIREMENTS_BACKLOG_PATH = ".persona/workflow/requirements/backlog.md"; export declare const DRAFT_REQUIREMENTS_QUESTIONS_PATH = ".persona/workflow/requirements/questions.md"; export declare const DRAFT_REQUIREMENTS_ASSUMPTIONS_PATH = ".persona/workflow/requirements/assumptions.md"; export declare const TASK_CARD_NAME = "00-task-card.md"; export declare const WORKFLOW_BACKLOG_SCHEMA_VERSION = "workflow-backlog.1"; export declare const WORKFLOW_REQUIREMENTS_BACKLOG_SCHEMA_VERSION = "workflow-requirements-backlog.1"; export declare const WORKFLOW_TASK_CARD_SCHEMA_VERSION = "workflow-task-card.2"; export type TaskCardRuleDelivery = { readonly budget: number; readonly estimatedTokens: number; readonly policyCount: number; readonly role: string; readonly ruleCount: number; readonly rulePackHash: string; readonly rules: readonly { readonly path: string; readonly policies: readonly string[]; }[]; }; export declare function parseStepSections(markdown: string): readonly StepSection[]; export declare function taskCardPath(ticket: string): string; export declare function historyTaskCardPath(ticket: string): string; export declare function formatTaskCard(source: RequirementSource, section: StepSection, ruleDelivery?: TaskCardRuleDelivery): string; export declare function formatBacklog(source: RequirementSource, sections: readonly StepSection[]): string; export declare function parseBacklog(markdown: string): readonly BacklogTicket[]; export declare function parseBacklogState(markdown: string): BacklogParseResult; export declare function replaceBacklogTicket(markdown: string, ticketId: string): string; export declare function pendingTickets(markdown: string): readonly BacklogTicket[];