import { BoundingBox, IPoint, Transform } from './geometry'; export declare class Viewport { private width; private height; private cameraPos; private cameraScale; constructor(width: number, height: number, cameraPos?: IPoint, cameraScale?: number); viewToWorld(): Transform; worldToView(): Transform; screenToView(): Transform; viewToScreen(): Transform; worldToScreen(): Transform; screenToWorld(): Transform; screenWidth(): number; screenHeight(): number; /** Translates the viewport in world coordinates */ moveBy(dx: number, dy: number): void; moveTo(x: number, y: number): void; resize(width: number, height: number): void; /** The center of the `Viewport` in world coordinates. */ center(): Readonly; scale(): number; scaleBy(k: number): void; scaleTo(k: number): void; /** Moves and scales the camera so that the `boundingBox` (in world coordinates) is visible. */ fit(boundingBox: BoundingBox): void; world(): BoundingBox; viewBox(): string; }