import * as React from 'react'; import { PluginProps, PLUGIN_ROTATE, Callback, RenderFunction } from '../../types.js'; /** Rotate plugin */ declare function Rotate({ augment, addParent }: PluginProps): void; declare module "yet-another-react-lightbox" { interface LightboxProps { /** Rotate plugin settings */ rotate?: { /** Rotate plugin ref */ ref?: React.ForwardedRef; /** toolbar buttons to display (default: "both") */ buttons?: "clockwise" | "counterclockwise" | "both"; }; } interface SlideImage { /** initial clockwise image rotation in degrees (multiples of 90) */ rotation?: number; } interface Render { /** render custom Rotate control in the toolbar */ buttonRotate?: RenderFunction; /** render custom Rotate Clockwise icon */ iconRotateClockwise?: RenderFunction; /** render custom Rotate Counterclockwise icon */ iconRotateCounterClockwise?: RenderFunction; } interface Labels { /** `Rotate clockwise` button title */ "Rotate clockwise"?: string; /** `Rotate counterclockwise` button title */ "Rotate counterclockwise"?: string; } interface Callbacks { /** rotate callback */ rotate?: Callback; } /** Rotate callback props */ interface RotateCallbackProps { /** index of the rotated slide */ index: number; /** new clockwise rotation in degrees */ rotation: number; } interface ToolbarButtonKeys { [PLUGIN_ROTATE]: null; } /** Rotate plugin ref */ interface RotateRef { /** clockwise rotation of the current slide in degrees (0, 90, 180 or 270) */ rotation: number; /** if `true`, rotation is unavailable for the current slide */ disabled: boolean; /** rotate the current slide 90 degrees clockwise */ rotateClockwise: Callback; /** rotate the current slide 90 degrees counterclockwise */ rotateCounterClockwise: Callback; } } export { Rotate as default };