import type { ContainerWidth, ForegroundPosition, ScrollerStep } from '../@types/global'; interface Props { /** * An array of step objects that define the steps in your scroller. * * Each step object in the array can have: * * - `background` A background component. **REQUIRED** * - `backgroundProps` Optional props for background component. * - `foreground` A component or markdown-formatted string. **REQUIRED** * - `foregroundProps` Optional props for foreground component. * - `altText` Optional alt text for the background, read aloud after the foreground text. You can add it to each step or just to the first step to describe the entire scroller graphic. **RECOMMENDED** * */ steps: ScrollerStep[]; /** Width of the background */ backgroundWidth?: ContainerWidth; /** Position of the foreground */ foregroundPosition?: ForegroundPosition; /** * Whether previous background steps should stack below the current one. * * - `true` _default_ Background graphics from previous steps will remain visible below the active one, allowing you to stack graphics with transparent backgrounds. * - `false` Only the background graphic from the current step will show and backgrounds from previous steps are hidden. */ stackBackground?: boolean; /** * How many background steps to load before and after the currently active one, effectively lazy-loading them. * * Setting to `0` disables lazy-loading and loads all backgrounds at once. */ preload?: number; /** Setting to `true` will unroll the scroll experience into a flat layout */ embedded?: boolean; /** * Layout order when `embedded` is `true`. * * - `fb` _default_ Foreground then background * - `bf` Background then foreground * */ embeddedLayout?: 'fb' | 'bf'; /** * Threshold prop passed to [svelte-scroller](https://github.com/sveltejs/svelte-scroller#parameters) */ threshold?: number; /** * Top prop passed to [svelte-scroller](https://github.com/sveltejs/svelte-scroller#parameters) */ top?: number; /** * Bottom prop passed to [svelte-scroller](https://github.com/sveltejs/svelte-scroller#parameters) */ bottom?: number; /** * Parallax prop passed to [svelte-scroller](https://github.com/sveltejs/svelte-scroller#parameters) */ parallax?: boolean; /** ID of the scroller container */ id?: string; /** Set a class to target with SCSS */ class?: string; /** The currently active section */ index?: number; /** How far the section has scrolled past the threshold, as a value between 0 and 1 */ offset?: number; /** How far the foreground has travelled, where 0 is the top of the foreground crossing top, and 1 is the bottom crossing bottom */ progress?: number; } /** * A scrollytelling component that drives background graphics from an array of steps with foreground text; built on ScrollerBase. * * [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-graphics-scroller--docs) */ declare const Scroller: import("svelte").Component; type Scroller = ReturnType; export default Scroller;