export interface EmbracePromiseRejectionConfig { /** * Enable/disable internal unhandled promise rejection handling. */ enabled: boolean; /** * Log unhandled promise rejections to the console. * Recommend to set to true in development environments for easier debugging. * Recommend to set to false in production environments to avoid duplicate logging. */ logToConsole: boolean; /** * Optional custom handler for unhandled promise rejections. * Use this to integrate with your own error tracking system. * @example * ```ts * customHandler: (method, error) => { * MyErrorTrackingService.logError(`Unhandled promise rejection in ${method}`, error); * } * ``` */ customHandler?: (methodName: string, error: Error) => void; } export declare const handleSDKPromiseRejection: (methodName: string, error: unknown) => void; export declare const configurePromiseRejection: (config: Partial) => void; export declare const getPromiseRejectionConfig: () => Readonly;