import { ZodError } from 'zod'; declare class UberDirectTypeProtectErrorHandling { private enableThrow; callback: ((error: ZodError) => void) | null; constructor(enableThrow?: boolean); /** * set callback to send error to broker of monitoring system or message queue * @param callback */ setThrowCallback(callback: (error: ZodError) => void): void; /** * set to true to throw error if type is wrong * set to false to only send a warning to the callback * @param enableThrow */ setEnableThrow(enableThrow: boolean): void; /** * throw error if enableThrow is true * always send error to callback * @param error * @protected */ protected throw(error: ZodError): void; } export { UberDirectTypeProtectErrorHandling };