import { Request as ExpressRequest, Response as ExpressResponse } from "express"; /** Checks for req-id Request Header. Returns an empty string if the header is not a truthy string. @param req */ export declare function getRequestId(req: T): string; export interface LogRequestParams { reqId: string; message: string; type?: "info" | "error" | "warn"; } export declare const logRequest: ({ reqId, message, type, }: LogRequestParams) => void; export interface ErrorResponseParams { reqId: string; res: ExpressResponse; httpStatus: number; errorMessage: string; errorDetails?: string; } export declare const sendErrorResponse: ({ reqId, res, httpStatus, errorMessage, errorDetails, }: ErrorResponseParams) => ExpressResponse> | undefined; export declare function retryAsyncOperation(promise: Promise, retries?: number, delayMs?: number): Promise; //# sourceMappingURL=utils.d.ts.map