import * as OpenApiValidator from 'express-openapi-validator';
import type { AnyServiceLocals, ServiceExpress, ServiceLocals } from './types.js';
import type { ConfigurationSchema } from './config/schema.js';
type OAPIOpts = Parameters<typeof OpenApiValidator.middleware>[0];
export declare function openApi<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>>(app: ServiceExpress<SLocals>, rootDirectory: string, codepath: string, pattern: string, openApiOptions?: Partial<OAPIOpts>): Promise<import("node_modules/express-openapi-validator/dist/framework/types.js").OpenApiRequestHandler[]>;
export {};
