import type { ResponseError } from 'superagent';
interface SanitisedError {
    text?: string;
    status?: number;
    headers?: unknown;
    data?: unknown;
    stack?: string | undefined;
    message: string;
}
export type UnsanitisedError = ResponseError;
export declare function sanitise(error: UnsanitisedError): SanitisedError;
export default sanitise;
