UNPKG

use-exit-intent

Version:
14 lines (13 loc) 538 B
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; };