You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
459 B

import type { Ref } from 'vue';
import type { UseNamespaceReturn } from '../use-namespace';
export declare type UseLockScreenOptions = {
ns?: UseNamespaceReturn;
};
/**
* Hook that monitoring the ref value to lock or unlock the screen.
* When the trigger became true, it assumes modal is now opened and vice versa.
* @param trigger {Ref<boolean>}
*/
export declare const useLockscreen: (trigger: Ref<boolean>, options?: UseLockScreenOptions) => void;