/** * @file hdr.ts * @brief Surface and context scales for extended-range output. * @details Context scaling remains separate from the material's display-headroom share. */ import { type Result } from "./result.js"; /** * @brief Host-supplied display brightness state; brightness values use the same units. * @details These are current values, not a browser capability query. Bounds and brightness * arithmetic are resolved in Float32 before the material's separate headroom share is selected. */ export interface DisplayBrightness { readonly panelMax: number; readonly brightnessCap: number; readonly sdrBrightness: number; /** @brief Lower headroom bound (default 1). */ readonly minHeadroom?: number; readonly maxHeadroom: number; /** @brief Requested multiplier; omission selects the available headroom. */ readonly requestedHeadroom?: number; } /** * @brief Resolve available or requested headroom from explicit display brightness values. * @details Uses the verified display-brightness sanity, available and capped arithmetic. Physical state * discovery, modulators and ramp scheduling remain the host's responsibility. */ export declare function resolveDisplayHeadroom(state: DisplayBrightness): Result;