/** * Per-file view rotation for image viewers — degrees (0/90/180/270) keyed by * file id, held in memory. Shared between an inline gallery and its fullscreen * modal so a rotation survives prev/next navigation and open/close while the * gallery is mounted. View-only: it is a render transform, never a mutation of * the stored file. */ export interface ImageRotation { rotations: Record; rotationFor: (id: string) => number; /** Advance a quarter-turn; `step` 1 = clockwise, -1 = counter-clockwise. */ rotate: (id: string, step?: 1 | -1) => void; } export declare function useImageRotation(): ImageRotation;