/** * Puts the slide elements where the motion says they are, and tells * assistive technology what they are. * * The track moves as a whole (one style per frame). When looping, a slide * that left on one side is set down on the other by its own translation, * which only changes at that moment. * * They are moved by `translate`, not `transform`: `transform`, `scale` and * `rotate` of a slide are the page's, for its own animations. */ import type { Layout } from './layout.js'; import type { Motion } from './engine.js'; import type { Place } from './index.js'; /** * @param root The slider. * @param track Parent of the slides. * @param slides The slides. * @return `frame( layout, motion, places )`, * `settle( places )`, `destroy()`. */ export declare function createDom(root: HTMLElement, track: HTMLElement, slides: HTMLElement[]): { /** How far each slide is moved by its own translation. */ moved: number[]; /** * @param layout Layout. * @param motion Motion. * @param places Where each slide is (see `place()`). */ frame(layout: Layout, motion: Motion, places: Place[]): void; /** * The slider came to rest: slides out of view leave the tab order * and the accessibility tree. * * @param places Where each slide is. */ settle(places: Place[]): void; destroy(): void; };