/**
 * Backward Compatibility Plugin
 *
 * Provides redirects and aliases from legacy unversioned routes
 * to the new versioned routes. This allows clients to migrate gradually.
 *
 * @packageDocumentation
 */
import type { FastifyPluginAsync } from 'fastify';
/**
 * Backward compatibility options
 */
export interface BackwardCompatOptions {
    /** Whether to enable legacy route redirects (defaults to true) */
    enableRedirects?: boolean;
    /** Whether to log legacy route usage (defaults to true) */
    logLegacyUsage?: boolean;
    /** Redirect status code (defaults to 307 Temporary Redirect) */
    redirectStatusCode?: 301 | 302 | 307 | 308;
    /** Legacy base path to redirect from (defaults to /api) */
    legacyBasePath?: string;
}
/**
 * Backward Compatibility Plugin (wrapped with fastify-plugin)
 */
export declare const backwardCompatPlugin: FastifyPluginAsync<BackwardCompatOptions>;
export default backwardCompatPlugin;
//# sourceMappingURL=backward-compat.d.ts.map