import type { RequestEvent } from "../core/event_request.js";
import type { BoundHandler } from "../tools/hook/hook.js";
export declare const RequestEventKeyLogMeta = "pbLogMeta";
export declare const RequestEventKeySkipSuccessActivityLog = "__skipSuccessActivityLogger";
export declare const DefaultWWWRedirectMiddlewarePriority = -99999;
export declare const DefaultWWWRedirectMiddlewareId = "pbWWWRedirect";
export declare const DefaultRateLimitMiddlewarePriority = -1000;
export declare const DefaultRateLimitMiddlewareId = "pbRateLimit";
export declare const DefaultActivityLoggerMiddlewarePriority: number;
export declare const DefaultActivityLoggerMiddlewareId = "pbActivityLogger";
export declare const DefaultSkipSuccessActivityLogMiddlewareId = "pbSkipSuccessActivityLog";
export declare const DefaultEnableAuthIdActivityLog = "pbEnableAuthIdActivityLog";
export declare const DefaultPanicRecoverMiddlewarePriority: number;
export declare const DefaultPanicRecoverMiddlewareId = "pbPanicRecover";
export declare const DefaultLoadAuthTokenMiddlewarePriority: number;
export declare const DefaultLoadAuthTokenMiddlewareId = "pbLoadAuthToken";
export declare const DefaultSuperuserIPsWhitelistMiddlewarePriority: number;
export declare const DefaultSuperuserIPsWhitelistMiddlewareId = "pbSuperuserIPsWhitelist";
export declare const DefaultSecurityHeadersMiddlewarePriority: number;
export declare const DefaultSecurityHeadersMiddlewareId = "pbSecurityHeaders";
export declare const DefaultRequireGuestOnlyMiddlewareId = "pbRequireGuestOnly";
export declare const DefaultRequireAuthMiddlewareId = "pbRequireAuth";
export declare const DefaultRequireSuperuserAuthMiddlewareId = "pbRequireSuperuserAuth";
export declare const DefaultRequireSuperuserOrOwnerAuthMiddlewareId = "pbRequireSuperuserOrOwnerAuth";
export declare const DefaultRequireSameCollectionContextAuthMiddlewareId = "pbRequireSameCollectionContextAuth";
export declare function RequireGuestOnly(): BoundHandler<RequestEvent>;
export declare function RequireAuth(...optCollectionNames: string[]): BoundHandler<RequestEvent>;
export declare function RequireSuperuserAuth(): BoundHandler<RequestEvent>;
export declare function RequireSuperuserOrOwnerAuth(ownerIdPathParam: string): BoundHandler<RequestEvent>;
export declare function RequireSameCollectionContextAuth(collectionPathParam: string): BoundHandler<RequestEvent>;
export declare function loadAuthToken(): BoundHandler<RequestEvent>;
export declare function activityLogger(): BoundHandler<RequestEvent>;
export declare function panicRecover(): BoundHandler<RequestEvent>;
export declare function securityHeaders(): BoundHandler<RequestEvent>;
export declare function superuserIPsWhitelist(): BoundHandler<RequestEvent>;
export declare function SkipSuccessActivityLog(): BoundHandler<RequestEvent>;
