/** * @module * Shared lifecycle hook invocation for mailer and channel senders. * Hook failures are swallowed so they never break the send path. */ /** * Invoke a lifecycle hook without letting hook failures break the send. * In non-production environments, hook errors are logged with `console.warn`. * * @typeParam T - Hook argument tuple types. * @param hook - Optional sync or async hook callback. * @param args - Arguments forwarded to the hook. */ export declare function invokeHook(hook: ((...args: T) => void | Promise) | undefined, ...args: T): Promise;