/** * Hook that lets you extract non-reactive logic into a stable callback. * * A stable callback is a function that has a stable identity across renders, * but always “sees” the latest values of your props and state. * * @param fn - the mutable callback * @returns a stable callback * @public */ export declare const useStableCallback: any>(fn: TFunction) => (...args: TFunction extends (...args: infer P) => any ? P : never) => TFunction extends (...args: any) => infer T ? T : never; /** * Hook to create a stable callback from a mutable one. * * @deprecated use {@link useStableCallback} instead * @param fn - the mutable callback * @returns a stable callback * @public */ export declare const useMutableCallback: any>(fn: TFunction) => (...args: TFunction extends (...args: infer P) => any ? P : never) => TFunction extends (...args: any) => infer T ? T : never; /** * Hook to create a stable callback from a mutable one. * * @deprecated use {@link useStableCallback} instead * @param fn - the mutable callback * @returns a stable callback * @public */ export declare const useEffectEvent: any>(fn: TFunction) => (...args: TFunction extends (...args: infer P) => any ? P : never) => TFunction extends (...args: any) => infer T ? T : never; //# sourceMappingURL=useStableCallback.d.ts.map