/**
 * Orphan + broken-ref scan for workspace CAE markdown (T100092).
 */
import type Database from "better-sqlite3";
export type CaeWorkspaceArtifactIntegrityFinding = {
    kind: "orphan_file" | "broken_ref";
    path: string;
    artifactId?: string;
    suggestion: string;
};
export type CaeWorkspaceArtifactIntegrityReport = {
    schemaVersion: 1;
    versionId: string;
    findings: CaeWorkspaceArtifactIntegrityFinding[];
};
/**
 * Scan workspace markdown under `.ai/cae/artifacts/` vs SQLite registry paths for the given version.
 */
export declare function scanCaeWorkspaceArtifactIntegrity(input: {
    workspaceRoot: string;
    db: InstanceType<typeof Database>;
    versionId: string;
}): CaeWorkspaceArtifactIntegrityReport;
