import * as THREE from 'three'; import type { Engine } from '../engine.js'; import type { ResolvedSettings } from '../options.js'; export interface PlainEngineContext { /** Receives pointer input; covers the pages. */ hitArea: HTMLElement; settings: ResolvedSettings; pageCount: number; /** Where the magazine opens, in the engine's own position units. */ position: number; } /** * The plain view's engine: nothing moves, the pages just change. Positions mean what they * do in the 3D engines (spread: sheets turned to the left; single: pages turned). The * controller shows the pages themselves. */ export declare class PlainEngine implements Engine { readonly group: THREE.Group; readonly maxPosition: number; private readonly spread; private readonly settings; private readonly hitArea; private readonly abort; private current; private dirty; private press; constructor(ctx: PlainEngineContext); get position(): number; get turning(): boolean; pagesInView(): { from: number; to: number; }; get activeSide(): "both" | "left" | "right"; update(): boolean; flip(forward: boolean): boolean; jumpTo(position: number): void; setPageTexture(): void; dispose(): void; private clamp; private bindInput; }