/** * This is a custom hook that allows us to simulate a synthetic event. This ensure we only trigger a side effect when a specific variable(dependency) changes. * @param {any} dependency - the variable that we want to listen to * @param {Function} callback - the callback that we want to execute when the dependency changes * @param {object} callbackOpts - the options to be passed to the callback function * @returns {void} * @invoke useLatestValueReferenciallyStable */ export declare const useSideEffectSyntheticEvent: (dependency: T, callback: (latestVal: T, opts: CBOpts) => void, callbackOpts: CBOpts) => void;