import { FastifyRequest, FastifyReply } from 'fastify'; import { IPolicy } from 'polly-ts-core'; /** * Creates a Fastify hook handler that applies a Polly policy. * Usage: fastify.addHook('onRequest', polly(policy)); * * @param policy The policy to apply (CircuitBreaker, Bulkhead, etc.) * @returns A Fastify hook handler. */ declare function polly(policy: IPolicy): (request: FastifyRequest, reply: FastifyReply) => Promise; export { polly };