import { orientations } from '../utils/constants'; interface UseOrientationProps { onOrientationChange?: (orientation: orientations) => void; } declare type UseOrientation = ({ onOrientationChange }: UseOrientationProps) => { orientation: orientations; }; /** * 监听屏幕方向变动的 hook */ declare const useOrientation: UseOrientation; export default useOrientation;