import Flicking, { Plugin } from "@egjs/flicking"; /** * A plugin to apply parallax effect while panels are moving * @see {@link https://naver.github.io/egjs-flicking/docs/demos/plugins/parallax | Demo: Parallax} */ declare class Parallax implements Plugin { private _flicking; private _selector; private _scale; /** CSS selector for the element to apply the parallax effect. If empty, the panel element itself is used * @readonly */ get selector(): string; /** Effect amplification scale * @readonly */ get scale(): number; /** Sets the CSS selector for the target parallax element. */ set selector(val: string); /** Sets the effect amplification scale. */ set scale(val: number); /** * @param selector - CSS selector for the element to apply the parallax effect. If empty, the panel element itself is used * @param scale - Effect amplification scale * @example * ```ts * flicking.addPlugins(new Parallax("img", 1)); * ``` */ constructor(selector?: string, scale?: number); /** Initialize the plugin and apply the parallax effect to the Flicking instance. * @param flicking - The Flicking instance to attach this plugin to */ init(flicking: Flicking): void; /** Destroy the plugin and remove all event listeners. */ destroy(): void; /** Recalculate and apply the parallax effect to all visible panels. */ update: () => void; private _onMove; } export default Parallax;