export default function replaceErrors(key: string, value: { [key: string]: any; }): any;