interface Position { x: number; y: number; } declare function usePosition(): { changePosition: (p: Position) => void; position: Position | undefined; }; export default usePosition;