import JoiRouter, { RouteSpec } from './joi.router';
export type SpecConfig = {
    info: {
        title: string;
        version: string;
        description: string;
    };
    basePath?: string;
    tags?: Array<{
        name: string;
        description: string;
    }>;
    [key: string]: any;
};
export type SpecOptions = {
    warnFunc?: (() => void) | undefined;
    defaultResponses?: object | undefined;
    definitions?: {
        [key: string]: any;
    };
};
export default class OpenApi {
    apiRoutes: {
        route: RouteSpec;
        prefix: string;
    }[];
    /**
     * Add a `koa-joi-router` router to the API.
     */
    addJoiRouter({ router, routes }: JoiRouter): void;
    /**
     * 生成OpenApi3.0定义
     *
     * @param {object} baseSpec - base document
     * @param {object} baseSpec.info
     * @param {string} baseSpec.info.title
     * @param {string} baseSpec.info.version
     * @param {object} baseSpec.tags
     * @param {string} baseSpec.tags.name
     * @param {string} baseSpec.tags.description
     * @param {object} [options]
     * @param renameKeys
     * @param {object} [options.warnFunc]
     * @param {object} [options.defaultResponses]
     * @param {object} [options.definitions]
     * @returns {object} openapi 3.0 specification
     */
    generateSpec(baseSpec: SpecConfig, options: SpecOptions, renameKeys?: {
        [key: string]: string;
    }): any;
}
