import { Surface } from '../Surface'; /** * Resize listener function */ declare type ResizeListener = (width: number, height: number) => void; declare class Display extends Surface { private container; private resizeListener; private fullscreen; /** * Primary display surface. * * @param container Container element * @return New Display object */ constructor(container: HTMLElement); /** * Set the listener function that is called whenever * the display container is resized. This function should take * the updated width and height of the display. * * @param listener Listener function */ setResizeListener(listener: ResizeListener): void; /** * Remove a registered resize listener function, if it exists. */ removeResizeListener(): void; /** * Turn on fullscreen mode */ setFullscreen(flag: boolean): void; /** * Tests if fullscreen mode is toggled on * * @returns Fullscreen? */ isFullscreen(): boolean; } export { Display };