/**
 * GPU / SurfaceFlinger / Composition Aggregator (Spark Plan 16)
 *
 * Joins render-stage breakdown, SurfaceFlinger composition, GPU memory
 * snapshots, vendor profiler imports and SF latency parser output into one
 * `GpuSurfaceFlingerContract`.
 */
import { type GpuMemorySnapshot, type GpuProfilerImport, type GpuRenderStage, type GpuSurfaceFlingerContract, type NsTimeRange, type SurfaceFlingerComposition } from '../types/sparkContracts';
export interface GpuSurfaceFlingerOptions {
    range: NsTimeRange;
    renderStages?: GpuRenderStage[];
    surfaceFlingerCompositions?: SurfaceFlingerComposition[];
    gpuMemory?: GpuMemorySnapshot[];
    vendorProfilerImports?: GpuProfilerImport[];
    surfaceFlingerLatency?: GpuSurfaceFlingerContract['surfaceFlingerLatency'];
}
export declare function buildGpuSurfaceFlinger(options: GpuSurfaceFlingerOptions): GpuSurfaceFlingerContract;
/**
 * Detect HWC fallback rate over a window of compositions. Returns
 * fallbackRate ∈ [0,1] and the count of stuffed-buffer frames.
 */
export declare function summarizeComposition(compositions: SurfaceFlingerComposition[] | undefined): {
    fallbackRate: number;
    bufferStuffedCount: number;
    total: number;
};
//# sourceMappingURL=gpuSurfaceFlinger.d.ts.map