import { QDialog } from "quasar"; import { MetaOptions } from "./meta"; import { ComponentPublicInstance, MaybeRefOrGetter, Ref } from "vue"; import { QVueGlobals } from "./globals"; export function useAnimationFrame(): { registerAnimationFrame: (fn: () => void) => void; removeAnimationFrame: () => void; }; export type DialogDismissReason = | "cancel" | "backdrop" | "escape" | "programmatic"; interface UseDialogPluginComponent { (): { dialogRef: Ref; onDialogHide: (evt?: Event) => void; onDialogOK: (payload?: T) => void; onDialogCancel: () => void; }; emits: ["ok", "hide"]; emitsObject: { ok: (payload?: any) => true; hide: (reason?: DialogDismissReason) => true; }; } export const useDialogPluginComponent: UseDialogPluginComponent; interface UseFormChildOptions { validate: () => boolean | Promise; resetValidation?: () => void; requiresQForm?: boolean; } export function useFormChild(options: UseFormChildOptions): void; export function useHydration(): { isHydrated: Ref; }; export interface UseIntersectionOptions { target?: MaybeRefOrGetter< Element | ComponentPublicInstance | null | undefined >; root?: Element | Document | null; rootMargin?: string; threshold?: number | number[]; once?: boolean; disabled?: boolean; onIntersect?: (entry: IntersectionObserverEntry) => boolean | void; } export function useIntersection( options?: MaybeRefOrGetter ): { isIntersecting: Ref; refresh: () => void; stop: () => void; }; export function useInterval(): { registerInterval: (fn: () => void, interval?: string | number) => void; removeInterval: () => void; }; export function useId(opts?: { getValue?: () => string | null | undefined; required?: boolean; }): Ref; export function useMeta(options: MetaOptions | (() => MetaOptions)): void; export function useQuasar(): QVueGlobals; export function useRenderCache(): { getCache: { (key: string, defaultValue: T | (() => T)): T; (key: string): T | undefined; }; setCache: (key: string, value: T) => void; hasCache: (key: string) => boolean; clearCache: (key?: string) => void; }; export function useSplitAttrs(): { attributes: Ref>; listeners: Ref< Record any) | ((...args: any[]) => any)[]> >; }; export function useTick(): { registerTick: (fn: () => void) => void; removeTick: () => void; }; export function useTimeout(): { registerTimeout: (fn: () => void, delay?: string | number) => void; removeTimeout: () => void; };