/** * Governance Enforcement: Ensure Jira Issue Exists Before Writing MD * * This module provides helper functions that enforce the rule: * "Before any MD file is created, the Jira issue must already exist" * * All code paths that create MD files should use these helpers. */ import type { JiraConfig, JiraIssue } from "../types"; import type { LocalTicket } from "./authoritative-sync"; /** * Ensure Jira issue exists, then write MD file * * This is the canonical function for creating MD files. * It enforces: Jira issue MUST exist before MD file is written. */ export declare function ensureJiraIssueExistsThenWriteMD(localTicket: LocalTicket, config: JiraConfig, baseDir: string, options?: { epicKey?: string; issueType?: string; labels?: string[]; }): Promise<{ issueKey: string; jiraCreated: boolean; mdCreated: boolean; mdUpdated: boolean; path: string; }>; /** * Type guard to ensure issue has key before writing MD */ export declare function assertIssueHasKey(issue: JiraIssue): asserts issue is JiraIssue & { key: string; }; //# sourceMappingURL=ensure-jira-before-md.d.ts.map