/** * Hook that calls a callback when a value changes. * * @remarks * This utility hook is useful for notification patterns where you need to * call a callback only when a value changes, not on every render. * * @param value - The value to track for changes * @param callback - The callback to invoke when value changes * @param shouldTrigger - Optional predicate to gate callback invocation (default: true) * * @example * ```typescript * // Notify host when loading state changes * useCallbackOnChange(isLoading, (loading) => onLoadingChanged?.({ isLoading: loading })); * * // Only notify when error is truthy * useCallbackOnChange(error, (err) => onError?.(err), Boolean(error)); * ``` * * @internal */ export declare function useCallbackOnChange(value: T, callback: ((value: T) => void) | undefined, shouldTrigger?: boolean): void; //# sourceMappingURL=useCallbackOnChange.d.ts.map