import type { FastifyBaseLogger, RouteOptions } from "fastify"; import type { preValidationMetaHookHandler } from "fastify/types/hooks.js"; import type { OpenApiBuilder } from "openapi3-ts"; import type { OAS3AutowireSecurityOptions } from "./types/index.js"; export * from "./types/index.js"; export declare function validateOptions(logger: FastifyBaseLogger, options: OAS3AutowireSecurityOptions | undefined): void; /** * Attaches all known security schemes to the OAS document. */ export declare function attachSecuritySchemesToDocument(logger: FastifyBaseLogger, doc: OpenApiBuilder, options: OAS3AutowireSecurityOptions): void; /** * Investigates a provided route and attaches a `preValidation` handler that evaluates * the given security scheme(s) for the route according to the OAS specification. */ export declare function attachSecurityToRoute(rLog: FastifyBaseLogger, route: RouteOptions, options: OAS3AutowireSecurityOptions, hookCache: Record): void;