import { PluginOption } from 'vite';
import { Rewrite } from 'connect-history-api-fallback';

interface MpaOptions {
    defaultOpenPage: '/' | boolean | string;
    scanDir: string;
    scanFile: string;
    filename: string;
    defaultEntries: string;
    rewrites: Rewrite[];
    specialPageNames: string;
    ignorePageNames: string;
}

declare function mpa(userOptions?: Partial<MpaOptions>): PluginOption;

export { type MpaOptions, mpa as default };
