import type { RunManifest } from "../contracts/run.js";
import type { GraphState } from "../memory/local-graph-memory-store.js";
export interface GraphViewCommandOptions {
    input?: string;
    output?: string;
    limit?: string;
    type?: string;
    includeMemoryVersions?: boolean;
    open?: boolean;
}
export declare function graphViewCommand(options?: GraphViewCommandOptions): Promise<void>;
export type GraphAuditVerdict = "passed" | "partial" | "failed";
export interface GraphAuditCounts {
    providerRoute: number;
    provider: number;
    evidence: number;
    decision: number;
    artifact: number;
}
export interface GraphAuditMismatch {
    field: string;
    graph: number | string | null;
    manifest: number | string | null;
}
export interface GraphAuditDangler {
    edgeId: string;
    type: string;
    from: string;
    to: string;
    missing: "from" | "to";
}
export interface GraphAuditRunResult {
    runId: string;
    runNodeFound: boolean;
    orphan: boolean;
    manifestPresent: boolean;
    counts: GraphAuditCounts;
    mismatches: GraphAuditMismatch[];
    danglers: GraphAuditDangler[];
    verdict: GraphAuditVerdict;
    notes: string[];
}
export interface GraphAuditReport {
    schemaVersion: "omk.graph-audit.v1";
    verdict: GraphAuditVerdict;
    statePath?: string;
    generatedAt: string;
    summary: {
        total: number;
        passed: number;
        partial: number;
        failed: number;
    };
    runs: GraphAuditRunResult[];
}
export interface GraphAuditCommandOptions {
    run?: string;
    input?: string;
    json?: boolean;
}
/**
 * Pure auditor: cross-checks linked run subgraphs against their manifests.
 * For each run it asserts the Run node exists with >=1 provider-route, provider,
 * evidence, decision, and artifact edge, cross-checks evidence counts/artifact
 * counts/status against the manifest, and flags orphan runs and dangling edges.
 */
export declare function auditGraphRuns(state: GraphState, entries: ReadonlyArray<{
    runId: string;
    manifest?: RunManifest | null;
}>, statePath?: string): GraphAuditReport;
export declare function graphAuditCommand(options?: GraphAuditCommandOptions): Promise<void>;
