import { Config } from '@contrast/config'; import { AxiosRequestConfig, AxiosResponse } from 'axios'; /** * Logs the config object in the format used by the agent (the report format is used in * diagnostics capabilities). Leverages the .getReport() redaction functionality to make * a copy of the config with sensitive values masked. */ export declare function config(config: Config): any; /** * Serializes errors using pino's `errWithCause` so that an error's `.cause` is * preserved as a nested, structured property (recursing through chained causes) * rather than being flattened into the message/stack. Also hides the verbose * `stdout`/`stderr` fields from child_process errors. */ export declare function err(error: Error): any; /** Excludes irrelevant information from the metrics object. */ export declare function metrics({ start, timeout, ...metrics }: any): any; /** * Serializes requests for the contrast-ui http logger. */ export declare function req(config: AxiosRequestConfig): { id: any; method: string | undefined; url: string | undefined; data: any; contentLength: any; }; /** * Serializes response for the contrast-ui http logger. */ export declare function res(response: AxiosResponse): { status: number; data: any; }; //# sourceMappingURL=serializers.d.ts.map