import { ExtensionType } from '../../../extensions/Extensions';
import { Rectangle } from '../../../maths/shapes/Rectangle';
import type { ICanvas } from '../../../settings/adapter/ICanvas';
import type { DestroyOptions } from '../../scene/destroyTypes';
import type { System } from './system/System';
import type { Texture } from './texture/Texture';
/** Options passed to the ViewSystem */
export interface ViewSystemOptions {
    /** The width of the screen. */
    width?: number;
    /** The height of the screen. */
    height?: number;
    /** The canvas to use as a view, optional. */
    element?: ICanvas;
    /** Resizes renderer view in CSS pixels to allow for resolutions other than 1. */
    autoDensity?: boolean;
    /** The resolution / device pixel ratio of the renderer. */
    resolution?: number;
    /** **WebGL Only.** Whether to enable anti-aliasing. This may affect performance. */
    antialias?: boolean;
    /** TODO: multiView */
    multiView?: boolean;
}
/**
 * The view system manages the main canvas that is attached to the DOM.
 * This main role is to deal with how the holding the view reference and dealing with how it is resized.
 */
export declare class ViewSystem implements System {
    /** @ignore */
    static extension: {
        readonly type: readonly [ExtensionType.WebGLSystem, ExtensionType.WebGPUSystem, ExtensionType.CanvasSystem];
        readonly name: "view";
        readonly priority: 0;
    };
    /** @ignore */
    static defaultOptions: ViewSystemOptions;
    multiView: boolean;
    /** The canvas element that everything is drawn to. */
    element: ICanvas;
    texture: Texture;
    /**
     * Whether CSS dimensions of canvas view should be resized to screen dimensions automatically.
     * @member {boolean}
     */
    autoDensity: boolean;
    antialias: boolean;
    screen: Rectangle;
    get resolution(): number;
    set resolution(value: number);
    /**
     * initiates the view system
     * @param options - the options for the view
     */
    init(options: ViewSystemOptions): void;
    /**
     * Resizes the screen and canvas to the specified dimensions.
     * @param desiredScreenWidth - The new width of the screen.
     * @param desiredScreenHeight - The new height of the screen.
     * @param resolution
     */
    resize(desiredScreenWidth: number, desiredScreenHeight: number, resolution: number): void;
    /**
     * Destroys this System and optionally removes the canvas from the dom.
     * @param {options | false} options - The options for destroying the view, or "false".
     * @param options.removeView - Whether to remove the view element from the DOM. Defaults to `false`.
     */
    destroy(options?: DestroyOptions): void;
}
