import * as Common from '../../core/common/common.js'; import * as SDK from '../../core/sdk/sdk.js'; import type * as Protocol from '../../generated/protocol.js'; import { Insets } from './DeviceModeModel.js'; export declare function computeRelativeImageURL(cssURLValue: string): string; export declare class EmulatedDevice { #private; title: string; type: string; order: number; vertical: Orientation; horizontal: Orientation; deviceScaleFactor: number; capabilities: string[]; userAgent: string; userAgentMetadata: Protocol.Emulation.UserAgentMetadata | null; modes: Mode[]; isDualScreen: boolean; verticalSpanned: Orientation; horizontalSpanned: Orientation; constructor(); static fromJSONV1(json: any): EmulatedDevice | null; static deviceComparator(device1: EmulatedDevice, device2: EmulatedDevice): number; modesForOrientation(orientation: string): Mode[]; getSpanPartner(mode: Mode): Mode | undefined; getRotationPartner(mode: Mode): Mode | null; toJSON(): any; private orientationToJSON; modeImage(mode: Mode): string; outlineImage(mode: Mode): string; orientationByName(name: string): Orientation; show(): boolean; setShow(show: boolean): void; copyShowFrom(other: EmulatedDevice): void; touch(): boolean; mobile(): boolean; } export declare const Horizontal = "horizontal"; export declare const Vertical = "vertical"; export declare const HorizontalSpanned = "horizontal-spanned"; export declare const VerticalSpanned = "vertical-spanned"; export declare const Type: { Phone: string; Tablet: string; Notebook: string; Desktop: string; Unknown: string; }; export declare const Capability: { Touch: string; Mobile: string; }; export declare const _Show: { Always: string; Default: string; Never: string; }; export declare class EmulatedDevicesList extends Common.ObjectWrapper.ObjectWrapper { #private; constructor(); static instance(): EmulatedDevicesList; private updateStandardDevices; private listFromJSONV1; standard(): EmulatedDevice[]; custom(): EmulatedDevice[]; revealCustomSetting(): void; addCustomDevice(device: EmulatedDevice): void; removeCustomDevice(device: EmulatedDevice): void; saveCustomDevices(): void; saveStandardDevices(): void; private copyShowValues; } export declare const enum Events { CustomDevicesUpdated = "CustomDevicesUpdated", StandardDevicesUpdated = "StandardDevicesUpdated" } export type EventTypes = { [Events.CustomDevicesUpdated]: void; [Events.StandardDevicesUpdated]: void; }; export interface Mode { title: string; orientation: string; insets: Insets; image: string | null; } export interface Orientation { width: number; height: number; outlineInsets: Insets | null; outlineImage: string | null; hinge: SDK.OverlayModel.Hinge | null; } export interface JSONMode { title: string; orientation: string; image?: string; insets: { left: number; right: number; top: number; bottom: number; }; }