import type { OpenfortError, OpenfortHookOptions } from '../../types.js'; /** Invokes a consumer callback without allowing its failure to alter the SDK operation. */ export declare function notifyHookCallback(callback: ((value: T) => unknown) | undefined, value: T, callbackName: 'onSuccess' | 'onError'): void; /** Runs the hook-level then the per-call success callback and passes the data through. */ export declare const onSuccess: ({ hookOptions, options, data, }: { hookOptions?: OpenfortHookOptions; options?: OpenfortHookOptions; data: T; }) => T; /** * Runs the hook-level then the per-call error callback and reports the failure * through the resolved value. Actions never reject, so every call site sees the * same `{ error }` shape whether or not callbacks were supplied. */ export declare const onError: ({ hookOptions, options, error, }: { hookOptions?: OpenfortHookOptions; options?: OpenfortHookOptions; error: OpenfortError; }) => { error: OpenfortError; }; /** * Shared default for hooks whose options parameter defaults to "no options". * One frozen instance, so the default keeps a stable identity across renders * and never becomes an accidental mutation channel. */ export declare const NO_HOOK_OPTIONS: Readonly>;