import { type HttpExchange } from "allure-js-commons"; import { type AxiosInstance, type AxiosResponse, type InternalAxiosRequestConfig } from "axios"; export type RedactionKind = "header" | "query" | "cookie" | "form"; export type RedactionContext = { kind: RedactionKind; name: string; value: string; request?: InternalAxiosRequestConfig; response?: AxiosResponse; url?: string; }; export type RedactionMatcher = string | RegExp | ((name: string, value: string, context: RedactionContext) => boolean); export type AllureAxiosOptions = { attachmentName?: string | ((exchange: HttpExchange) => string); maxBodySize?: number; captureRequestBody?: boolean; captureResponseBody?: boolean; redactHeaders?: RedactionMatcher[]; redactQueryParams?: RedactionMatcher[]; redactCookies?: RedactionMatcher[]; redactFormFields?: RedactionMatcher[]; includeErrorStack?: boolean; throwAttachmentErrors?: boolean; }; export declare const instrumentAxios: (instance: AxiosInstance, options?: AllureAxiosOptions) => (() => void);