index.d.ts 451 B

1234567891011
  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;