import { Plugin } from 'vite';
import { ServerOptions } from 'http-proxy';

interface OhmytsOptions {
    target: string;
    proxyOptions: ServerOptions;
    rootDir?: string;
    encoding?: BufferEncoding;
    suffix?: string;
    overwrite?: boolean;
    declare?: boolean;
}

declare function ohmytsVite(options: OhmytsOptions | OhmytsOptions[]): Plugin;

export { OhmytsOptions, ohmytsVite };
