import {CbError} from '../../hosted_fields/common/errors'; export default function sanitizeError(error: any, locale?: any): any; export interface SanitizedCbError extends CbError { displayMessage: string; constructor(err?: any, data?: any, locale?: any, ...args: any[]); toJSON(): Object; toString(): string; }