import type { Request, RequestHandler, Response } from "express";
import type { IdempotencyGuard, IdempotencyScope } from "../core/types.js";
export type IdempotencyRouteOptions = {
    guard: IdempotencyGuard;
    header?: string;
    scopeFromReq?: (req: Request) => IdempotencyScope;
};
/**
 * Wrap a JSON route handler so `Idempotency-Key` replays the stored response.
 * Use on POST routes after api-key and rate-limit.
 */
export declare function wrapIdempotentHandler<T>(options: IdempotencyRouteOptions, handler: (req: Request, res: Response) => Promise<T>): RequestHandler;
//# sourceMappingURL=index.d.ts.map