import NUIPage from '../Page'; import NUIViewport from '../Viewport'; import * as t from '../types'; declare class Page { #private; pageUrl: string; constructor(nuiPage: NUIPage); clearNode(): this; get aspectRatio(): number; set aspectRatio(value: number); get mounted(): boolean; set mounted(value: boolean); get aspectRatioMin(): number; set aspectRatioMin(value: number); get aspectRatioMax(): number; set aspectRatioMax(value: number); get components(): import("noodl-types").ComponentObject[]; get created(): number | null; get history(): string[]; get hooks(): Record[]>; get id(): string | null; get modifiers(): { [pageName: string]: { [key: string]: any; } & { reload?: boolean; }; }; get page(): string; set page(page: string); get previous(): string; set previous(pageName: string); get requesting(): string; set requesting(pageName: string); get node(): this["id"] extends "root" ? HTMLDivElement : HTMLIFrameElement; set node(node: this["id"] extends "root" ? HTMLDivElement : HTMLIFrameElement); get tagName(): string; get viewport(): NUIViewport; set viewport(viewport: NUIViewport); getNuiPage(): NUIPage; getCbs(): Record[]>; clearCbs(): this; getPreviousPage(startPage: string): string; /** * Returns a JS representation of the current state of this page instance */ snapshot = Record>(opts?: OtherProps): { created: number | null; id: string | null; components: import("noodl-types").ComponentObject[]; modifiers: { [pageName: string]: { [key: string]: any; } & { reload?: boolean; }; }; status: t.Page.Status; previous: string; current: string; requesting: string; pageUrl: string; viewport: { width: number; height: number; }; node: { id: string; width: string; height: string; childElementCount: number; tagName: string; }; tagName: string; } & OtherProps; on(evt: K, fn: t.Page.Hook[K]): this; off(evt: K, fn: t.Page.Hook[K]): this; once(evt: Evt, fn: t.Page.Hook[Evt]): this; emitAsync(evt: K, ...args: Parameters): Promise | undefined>; emitSync(evt: K, ...args: Parameters): this; setStatus(status: t.Page.Status): this; setModifier(page: string, obj: { [key: string]: any; }): this; remove(): void; toJSON(): { created: number | null; id: string | null; components: import("noodl-types").ComponentObject[]; modifiers: { [pageName: string]: { [key: string]: any; } & { reload?: boolean; }; }; status: t.Page.Status; previous: string; current: string; requesting: string; pageUrl: string; viewport: { width: number; height: number; }; node: { id: string; width: string; height: string; childElementCount: number; tagName: string; }; tagName: string; } & Record; } export default Page;