use-exit-intent
Version:
A React Hook to handle exit intent strategies
14 lines (13 loc) • 538 B
TypeScript
export * from './types';
import { ExitIntentHandler, ExitIntentSettings } from './types';
export declare function useExitIntent(props?: ExitIntentSettings | void): {
settings: Required<import("./types").DeepRequired<ExitIntentSettings>>;
resetState: () => void;
isTriggered: boolean;
unsubscribe: () => void;
resetSettings: () => void;
updateSettings: (settings?: ExitIntentSettings) => void;
isUnsubscribed: boolean;
registerHandler: (handler: ExitIntentHandler) => void;
willBeTriggered: boolean;
};