export interface DevicePreset { /** Requested device width; the hosted physical screen may be widened to its minimum. */ width: number; /** Requested device height, used for the hosted physical screen. */ height: number; /** Mobile identity; enables emulation only when the hosted lane explicitly opts in. */ isMobile: boolean; /** Requested DPR; applied on hosted mobile lanes only with opt-in CDP emulation. */ deviceScaleFactor: number; } /** * Named presets. Keys are the public vocabulary for `execution.desktop.device` and (later) a * per-persona `device`. Values are copied verbatim from the in-house ui-sim screen tables; * the per-line notes record where the two reference sims agree vs. diverge. */ export declare const DEVICE_PRESETS: { readonly mobile: { readonly width: 414; readonly height: 896; readonly isMobile: true; readonly deviceScaleFactor: 3; }; readonly "small-mobile": { readonly width: 360; readonly height: 740; readonly isMobile: true; readonly deviceScaleFactor: 3; }; readonly "narrow-mobile": { readonly width: 320; readonly height: 700; readonly isMobile: true; readonly deviceScaleFactor: 2; }; readonly tablet: { readonly width: 820; readonly height: 1180; readonly isMobile: false; readonly deviceScaleFactor: 2; }; readonly desktop: { readonly width: 1440; readonly height: 950; readonly isMobile: false; readonly deviceScaleFactor: 1; }; readonly wide: { readonly width: 1920; readonly height: 1080; readonly isMobile: false; readonly deviceScaleFactor: 1; }; }; export type DevicePresetName = keyof typeof DEVICE_PRESETS; /** * Default device for a run that does not declare one. `desktop` (1440x950) is the median * first-run laptop screen — the in-house desktop default, within 10px of humanish's own * pre-existing run.ts desktop surface. `wide` (1920x1080), the most-common external monitor, is * one keystroke away (`execution.desktop.device: wide`) but is deliberately not the default, * because the median device a first-time user arrives on is a laptop, not a 1080p monitor. */ export declare const DEFAULT_DEVICE_PRESET: DevicePresetName; /** The ordered list of preset names, for validation + help text. */ export declare const DEVICE_PRESET_NAMES: DevicePresetName[]; export declare function isDevicePresetName(value: unknown): value is DevicePresetName; /** Resolve a preset name (or undefined) to its preset, falling back to the default. */ export declare function resolveDevicePreset(name: DevicePresetName | undefined): DevicePreset;