import { EditorAPI } from '../../types/CommonTypes'; /** * The CanvasController is responsible for all Canvas-related functionality. * Methods inside this controller can be called by `window.SDK.canvas.{method-name}` */ export declare class CanvasController { #private; /** * @ignore */ constructor(editorAPI: EditorAPI); /** * This method fits the page to the given rectangle or the viewport available * Optional parameters `left`, `top`, `width` and `height` are needed to define the rectangle to fit the page to * If any or all of them aren't provided the page will fit the whole viewport available * @param left * @param top * @param width * @param height * @returns */ zoomToPage: (left?: number | null, top?: number | null, width?: number | null, height?: number | null) => Promise>; }