import { WorkspaceResolution } from "../../workspace/WorkspaceManager.js"; import { type ReviewSeverity } from "../docs/review/ReviewTypes.js"; export interface SdsPreflightQuestionAnswer { question: string; normalized: string; required: boolean; target: string; sourcePath?: string; line?: number; answer: string; rationale: string; assumptions: string[]; } export interface SdsPreflightIssueSummary { gateId: string; gateName: string; severity: ReviewSeverity; category: string; message: string; remediation: string; location: string; } export interface SdsPreflightResult { projectKey: string; generatedAt: string; readyForPlanning: boolean; qualityStatus: "pass" | "warn" | "fail"; sourceSdsPaths: string[]; reportPath: string; openQuestionsPath: string; gapAddendumPath: string; generatedDocPaths: string[]; questionCount: number; requiredQuestionCount: number; issueCount: number; blockingIssueCount: number; appliedToSds: boolean; appliedSdsPaths: string[]; commitHash?: string; issues: SdsPreflightIssueSummary[]; questions: SdsPreflightQuestionAnswer[]; warnings: string[]; } export interface SdsPreflightOptions { workspace: WorkspaceResolution; projectKey: string; inputPaths?: string[]; sdsPaths?: string[]; writeArtifacts?: boolean; applyToSds?: boolean; commitAppliedChanges?: boolean; commitMessage?: string; } export declare class SdsPreflightService { private readonly workspace; constructor(workspace: WorkspaceResolution); static create(workspace: WorkspaceResolution): Promise; close(): Promise; private walkCandidates; private collectPathCandidates; private discoverSdsPaths; private countSdsSectionSignals; private isLikelySdsPath; private selectLikelySdsPaths; private resolveSdsPaths; private buildArtifacts; private getGateRunners; private dedupeIssues; private resolveWorkspacePath; private collectSignalsFromContent; private collectSignalsByPath; private signalsForPath; private answerForQuestion; private managedFolderTreeSection; private managedTechnologySection; private managedPolicyTelemetrySection; private managedOperationsSection; private managedAdapterSection; private shouldReplaceIssueLine; private replacementForIssue; private extractQuestionAnswers; private issueSection; private remediationLines; private verificationLines; private buildAddendum; private buildQuestionsDoc; private summarizeIssues; private collectGateResults; private issueMatchesPath; private questionMatchesPath; private normalizeResolvedText; private buildLineReplacementsForPath; private applyLineReplacements; private buildManagedSdsBlock; private upsertManagedSdsBlock; private applyPreflightRemediationsToSds; private commitAppliedSdsChanges; runPreflight(options: SdsPreflightOptions): Promise; } //# sourceMappingURL=SdsPreflightService.d.ts.map