/** * Serialize an error object to a string, including any custom properties. */ export declare function errorToString(error: any, options?: { redacted?: boolean; }): string;