import { DependencyList, useEffect, useLayoutEffect } from "react"; declare const UNDEFINED_VOID_ONLY: unique symbol; declare type voidOnly = void | { [UNDEFINED_VOID_ONLY]: never; }; declare type onCleanup = (execute: () => void) => void; export declare type promiseEffect = (onCleanup: onCleanup) => Promise; export declare type regularEffect = (onCleanup: onCleanup) => voidOnly; export declare type regularEffectWithCleanup = (onCleanup: onCleanup) => () => voidOnly; export declare type efct = promiseEffect | regularEffectWithCleanup | regularEffect; declare type useEfctAbstract = (hook: typeof useEffect | typeof useLayoutEffect, effect: T, deps?: DependencyList) => void; export declare const useEfctAbstract: useEfctAbstract; export {};