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.

11 lines
451 B

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