import type { FigmaConnectorErrorCode } from "./figmaConnectorErrors.js";
import type { FigmaScopeRef } from "./figmaScopeRef.js";
export declare const FIGMA_AUDIT_SCHEMA_VERSION: 1;
export type FigmaConnectorAction = "connect" | "snapshot" | "resnapshot" | "revoke";
export type FigmaConnectorOutcome = "ok" | "error";
/** Pure cardinalities only — never names, ids, links, or design content. */
export interface FigmaConnectorAuditCounts {
    readonly screens: number;
    readonly renders: number;
    readonly skipped: number;
    readonly designTokens: number;
    /** Inter-screen transitions; present only when the IR carried links (nav graph #811 is additive). */
    readonly navTransitions?: number;
}
export interface FigmaConnectorAuditEntry {
    readonly at: string;
    readonly action: FigmaConnectorAction;
    readonly outcome: FigmaConnectorOutcome;
    /** Present only when `outcome === "error"`. A coded, safe error from the connector taxonomy. */
    readonly errorCode?: FigmaConnectorErrorCode;
    /** Present only on a successful action that produced board cardinalities. */
    readonly counts?: FigmaConnectorAuditCounts;
}
export interface FigmaConnectorAuditArtifact {
    readonly figmaAuditSchemaVersion: typeof FIGMA_AUDIT_SCHEMA_VERSION;
    readonly scopeRef: FigmaScopeRef;
    readonly auditLog: readonly FigmaConnectorAuditEntry[];
    readonly lastUpdatedAt: string;
}
export declare const loadFigmaConnectorAudit: (scopeRef: FigmaScopeRef, evidenceDir: string) => FigmaConnectorAuditArtifact | undefined;
export interface AppendFigmaConnectorAuditInput {
    readonly scopeRef: FigmaScopeRef;
    readonly evidenceDir: string;
    readonly action: FigmaConnectorAction;
    readonly outcome: FigmaConnectorOutcome;
    readonly now: string;
    readonly errorCode?: FigmaConnectorErrorCode;
    readonly counts?: FigmaConnectorAuditCounts;
}
/**
 * Append an append-only connector-action audit entry through the reused Evidence audit seam.
 * Creates the artifact on first use. Returns the updated artifact. The caller authorises the action.
 */
export declare const appendFigmaConnectorAudit: (input: AppendFigmaConnectorAuditInput) => FigmaConnectorAuditArtifact;
//# sourceMappingURL=figmaConnectorAudit.d.ts.map