import type { MiddlewareConfigType } from './type';
import type { Middleware } from '../middleware/MiddlewareStack';
import type { MiddlewareFailureResponder } from '../middleware/MiddlewareFailureResponder';
type SharedMiddlewares = {
    log: Middleware;
    error: Middleware;
    security: Middleware;
    rateLimit: Middleware;
    sanitizeBody: Middleware;
    fillRateLimit: Middleware;
    authRateLimit: Middleware;
    userMutationRateLimit: Middleware;
    csrf: Middleware;
    auth: Middleware;
    jwt: Middleware;
    bulletproof: Middleware;
    validateLogin: Middleware;
    validateRegister: Middleware;
    validateUserStore: Middleware;
    validateUserUpdate: Middleware;
    validateUserFill: Middleware;
};
type MiddlewareResponderKey = keyof SharedMiddlewares;
type MiddlewareResponderConfig = Partial<Record<MiddlewareResponderKey, MiddlewareFailureResponder>>;
export declare const MiddlewareBody: {
    readonly email: "email";
    readonly password: "password";
    readonly name: "name";
    readonly count: "count";
};
export type MiddlewaresType = {
    skipPaths: ReadonlyArray<string>;
    fillRateLimit: {
        windowMs: number;
        max: number;
        message: string;
    };
    authRateLimit: {
        windowMs: number;
        max: number;
        message: string;
    };
    userMutationRateLimit: {
        windowMs: number;
        max: number;
        message: string;
    };
    responders?: MiddlewareResponderConfig;
    global?: ReadonlyArray<Middleware>;
    route?: Record<string, Middleware>;
};
export declare const MiddlewareKeys: Readonly<{
    log: true;
    error: true;
    security: true;
    rateLimit: true;
    sanitizeBody: true;
    fillRateLimit: true;
    authRateLimit: true;
    userMutationRateLimit: true;
    csrf: true;
    auth: true;
    jwt: true;
    bulletproof: true;
    validateLogin: true;
    validateRegister: true;
    validateUserStore: true;
    validateUserUpdate: true;
    validateUserFill: true;
}>;
export type MiddlewareKey = keyof typeof MiddlewareKeys;
export declare function createMiddlewareConfig(): MiddlewareConfigType;
/**
 * Clear the middleware configuration cache
 * This ensures fresh config loading in watch mode
 */
export declare const clearMiddlewareConfigCache: () => void;
export declare const middlewareConfig: MiddlewareConfigType;
export default middlewareConfig;
//# sourceMappingURL=middleware.d.ts.map