/** * Cleanup Utilities * * Provides fail-safe reporting for cleanup sequence failures. * Cleanup sequences reset server-side state (cart, addresses, prefs) * between test runs. When a cleanup fails, it is logged but does NOT * abort the test — the test continues and the failure is reported * separately for investigation. * * API endpoint documentation: https://task-wolf.com/docs/users/automation/apis/cleanup-alerts/ */ export type ReportCleanupFailedParams = { dedupKey?: string; errorMsg?: string; }; /** * POST cleanup failure details to the automation Cleanup Failure API. * No-ops when `QAWOLF_RUN_ID` is unset (e.g. editor runs). */ export declare function reportCleanupFailed({ dedupKey, errorMsg, }?: ReportCleanupFailedParams): Promise; /** * Report a cleanup sequence failure to the automation stack. * Logs the error but does NOT throw — the test continues. * * @param cleanupName - Identifier for the cleanup (e.g., "cart-cleanup") * @param error - The error thrown by the cleanup sequence */ export declare function reportCleanupFailure(cleanupName: string, error: unknown): void; //# sourceMappingURL=cleanupUtils.d.ts.map