import React, { Dispatch, HTMLProps, MutableRefObject, Ref, RefObject, SetStateAction, useLayoutEffect } from "react"; //#region src/hooks/useRipple.d.ts /** * This hook accepts a ref to any element and adds a click event handler that creates ripples when click */ declare const useRipple: (ref: React.RefObject, inverted?: boolean, enabled?: boolean) => null; //#endregion //#region src/hooks/useIsMounted.d.ts declare const useIsMounted: () => () => boolean; //#endregion //#region src/hooks/useIsClosing.d.ts declare function useIsClosing(initialValue?: boolean, delay?: number): { isOpen: boolean; isClosing: boolean; setIsOpen: (newState: boolean) => void; }; //#endregion //#region src/hooks/usePrevious.d.ts declare function usePrevious(value: T): T; //#endregion //#region src/hooks/useDebounce.d.ts declare function useDebounce(value: T, delay?: number): [T, Dispatch>]; declare function useRefDebounce(value: T, delay?: number): MutableRefObject; declare function useStateDebounce(initialValue: T, delay?: number): [T, T, (initialValue: SetStateAction, immediate?: boolean) => void]; //#endregion //#region src/hooks/useCopyToClipboard.d.ts type CopiedValue = string | null; type CopyFn = (text: string) => Promise; declare function useCopyToClipboard(): [CopiedValue, CopyFn]; //#endregion //#region src/hooks/useEventListener.d.ts declare function useEventListener(eventName: K, handler: (event: MediaQueryListEventMap[K]) => void, element: RefObject, options?: boolean | AddEventListenerOptions): void; declare function useEventListener(eventName: K, handler: (event: WindowEventMap[K]) => void, element?: undefined, options?: boolean | AddEventListenerOptions): void; declare function useEventListener(eventName: K, handler: ((event: HTMLElementEventMap[K]) => void) | ((event: SVGElementEventMap[K]) => void), element: RefObject, options?: boolean | AddEventListenerOptions): void; declare function useEventListener(eventName: K, handler: (event: DocumentEventMap[K]) => void, element: RefObject, options?: boolean | AddEventListenerOptions): void; //#endregion //#region src/hooks/useOnClickOutside.d.ts type EventType = "mousedown" | "mouseup" | "touchstart" | "touchend" | "focusin" | "focusout"; declare function useOnClickOutside(ref: RefObject | RefObject[], handler: (event: MouseEvent | TouchEvent | FocusEvent) => void, eventType?: EventType, eventListenerOptions?: AddEventListenerOptions): void; //#endregion //#region src/hooks/useIsomorphicLayoutEffect.d.ts declare const useIsomorphicLayoutEffect: typeof useLayoutEffect; //#endregion //#region src/hooks/useMergeRefs.d.ts type RefCallback = (instance: T | null) => void; /** * Merges an array of refs into a single memoized callback ref or `null`. * @see https://floating-ui.com/docs/react-utils#usemergerefs */ declare function useMergeRefs(refs: Array | undefined>): RefCallback | null; declare function useStrictMergeRefs(refs: Array | undefined>): RefCallback; //#endregion //#region src/hooks/useDoubleCheck.d.ts declare function useDoubleCheck

, "size"> = Omit, "size">>(): { doubleCheck: boolean; getButtonProps: (userProps?: P) => P; }; //#endregion //#region src/hooks/useIntersectionObserver.d.ts type UseIntersectionObserverOptions = { root?: Element | Document | null; rootMargin?: string; threshold?: number | number[]; freezeOnceVisible?: boolean; onChange?: (isIntersecting: boolean, entry: IntersectionObserverEntry) => void; initialIsIntersecting?: boolean; }; type IntersectionReturn = [(node?: Element | null) => void, boolean, IntersectionObserverEntry | undefined] & { ref: (node?: Element | null) => void; isIntersecting: boolean; entry?: IntersectionObserverEntry; }; declare function useIntersectionObserver({ threshold, root, rootMargin, freezeOnceVisible, initialIsIntersecting, onChange }?: UseIntersectionObserverOptions): IntersectionReturn; //#endregion export { useCopyToClipboard, useDebounce, useDoubleCheck, useEventListener, useIntersectionObserver, useIsClosing, useIsMounted, useIsomorphicLayoutEffect, useMergeRefs, useOnClickOutside, usePrevious, useRefDebounce, useRipple, useStateDebounce, useStrictMergeRefs }; //# sourceMappingURL=index.d.mts.map