import type { ScenePerfReport, ScenePerfTier } from '@hypersoniclabs/helix-manifest'; /** Thrown by the publish gate. `message` is the full human refusal; `report` is the machine form. */ export declare class ScenePerfRefusal extends Error { readonly report: ScenePerfReport; constructor(report: ScenePerfReport); } export type ScenePerfBuildInput = { /** The Scene v2 document bytes. */ scene: Buffer; /** The bundle files the build uploads, by bundle-relative path. */ resources: ReadonlyArray<{ path: string; bytes: Buffer; }>; }; /** * The publish gate. Reads exactly the bytes a build is about to upload, evaluates the perf contract and throws * `ScenePerfRefusal` when any refusing rule fails. Warnings pass. Returns the report so a caller can seal it. */ export declare function enforceScenePerfGate(input: ScenePerfBuildInput, options?: { tiers?: ScenePerfTier[]; profile?: string; }): Promise;