import Application from 'koa';
import { Plugable } from './plugin.js';

interface IProxyConfig {
    name?: string | 'tomapp';
    proxy?: {
        inject: 'init' | 'load' | 'before' | 'after';
        before: [];
    };
}
declare class Proxy extends Plugable {
    inject: any;
    constructor(cfg?: IProxyConfig);
    proxy(): (ctx: Application.BaseContext, next: any) => Promise<void>;
}

export { type IProxyConfig, Proxy };
