usePointerLock(): { cleanup: () => void; exitLock: () => void; requestLock: ( element: Element, options?: PointerLockOptions, ) => Promise<void>; get state(): PointerLockState; subscribe(callback: (state: PointerLockState) => void): () => boolean;} Returns {
cleanup: () => void;
exitLock: () => void;
requestLock: (
element: Element,
options?: PointerLockOptions,
) => Promise<void>;
get state(): PointerLockState;
subscribe(callback: (state: PointerLockState) => void): () => boolean;
}