import type { QualityIntelligenceFigma } from "@oscharko-dev/keiko-quality-intelligence";
import type { FigmaSnapshot } from "./figmaSnapshotTypes.js";
/** Deterministic-vs-model augmentation tally. Supplied by the QI source (#754) as plain counts. */
export interface FigmaAugmentationTally {
    readonly deterministic: number;
    readonly modelAugmented: number;
}
export interface FigmaAugmentationShare {
    readonly deterministic: number;
    readonly modelAugmented: number;
    /** modelAugmented / (deterministic + modelAugmented), rounded to 4 dp; 0 when the total is 0. */
    readonly modelAugmentedShare: number;
}
/** Optional navigation-graph cardinalities (#811). Present only when links/screens are supplied. */
export interface FigmaNavGraphMetrics {
    readonly screens: number;
    readonly transitions: number;
}
/** Optional a11y-finding cardinalities (#812). Present only when a finding count is supplied. */
export interface FigmaA11yMetrics {
    readonly findings: number;
}
export interface FigmaConnectorMetrics {
    /** Share of the raw subtree removed by deterministic cleaning, in [0, 1]. */
    readonly reductionRatio: number;
    readonly screenCount: number;
    /** Screens that produced a render in the Snapshot (≤ screenCount; the rest are skippedScreens). */
    readonly renderCount: number;
    readonly designTokenCount: number;
    readonly augmentation: FigmaAugmentationShare;
    readonly navGraph?: FigmaNavGraphMetrics;
    readonly a11y?: FigmaA11yMetrics;
}
/** Optional, additive metric inputs from siblings not yet merged. */
export interface FigmaConnectorMetricsExtras {
    /** A11y finding count from #812. Omit when the a11y baseline did not run. */
    readonly a11yFindings?: number;
}
/**
 * Compute the operational metrics from the deterministic IR, the assembled Snapshot, the
 * augmentation tally, and any additive sibling inputs. Pure: same inputs → byte-identical metrics.
 */
export declare const computeFigmaConnectorMetrics: (ir: QualityIntelligenceFigma.ScreenIrResult, snapshot: FigmaSnapshot, augmentation: FigmaAugmentationTally, extras?: FigmaConnectorMetricsExtras) => FigmaConnectorMetrics;
//# sourceMappingURL=figmaConnectorMetrics.d.ts.map