/** Per-file view rotation keyed by id, shared by a gallery and its fullscreen modal so it survives * navigation while mounted. A render transform, never a mutation of the stored file. */ export interface ImageRotation { rotations: Record; rotationFor: (id: string) => number; /** `step` 1 clockwise, -1 counter-clockwise. */ rotate: (id: string, step?: 1 | -1) => void; } export declare function useImageRotation(): ImageRotation;