import { WlSeatResource, WlShellSurfaceRequests, WlShellSurfaceResource, WlSurfaceResource } from 'westfield-runtime-server'; import { DesktopSurface } from './Desktop'; import { RectWithInfo } from './math/Rect'; import { Size } from './math/Size'; import Session from './Session'; import Surface from './Surface'; import { DesktopSurfaceRole } from './SurfaceRole'; import View from './View'; declare enum SurfaceStates { MAXIMIZED = 0, FULLSCREEN = 1, POPUP = 2, TRANSIENT = 3, TOP_LEVEL = 4 } export default class ShellSurface implements WlShellSurfaceRequests, DesktopSurfaceRole { readonly resource: WlShellSurfaceResource; readonly surface: Surface; readonly session: Session; readonly view: View; state?: SurfaceStates; readonly desktopSurface: DesktopSurface; private _pingTimeoutActive; private _timeoutTimer; private _pingTimer; private added; private constructor(); static create(wlShellSurfaceResource: WlShellSurfaceResource, wlSurfaceResource: WlSurfaceResource, session: Session): ShellSurface; requestClose(): void; queryMaximized(): boolean; queryFullscreen(): boolean; queryGeometry(): RectWithInfo; queryMinSize(): Size; queryMaxSize(): Size; configureMaximized(): void; configureFullscreen(): void; configureSize({ width, height }: Size): void; configureActivated(): void; configureResizing(): void; onCommit(surface: Surface): void; pong(resource: WlShellSurfaceResource): void; doPing(resource: WlShellSurfaceResource): void; move(resource: WlShellSurfaceResource, wlSeatResource: WlSeatResource, serial: number): void; resize(resource: WlShellSurfaceResource, wlSeatResource: WlSeatResource, serial: number, edges: number): void; setToplevel(): void; setTransient(resource: WlShellSurfaceResource, parent: WlSurfaceResource, x: number, y: number, flags: number): void; setFullscreen(): void; setPopup(resource: WlShellSurfaceResource, wlSeatResource: WlSeatResource, serial: number, parent: WlSurfaceResource, x: number, y: number): void; setMaximized(): void; setTitle(resource: WlShellSurfaceResource, title: string): void; setClass(resource: WlShellSurfaceResource, clazz: string): void; private changeState; private handleDestroy; private maybeUngrab; } export {};