import { FilterPattern } from '@rollup/pluginutils';

interface Options {
    /**
     * 自定义转换规则
     * @default
     * {
        '.': '-d-',
        '/': '-s-',
        ':': '-c-',
        '%': '-p-',
        '!': '-e-',
        '#': '-w-',
        '(': '-bl-',
        ')': '-br-',
        '[': '-fl-',
        ']': '-fr-',
        '$': '-r-',
      }
     */
    rules?: Record<string, string>;
    /**
     * 排除转换目标
     * @default [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/]
     */
    exclude?: FilterPattern;
    /**
     * 需要转换的目标
     * @default [/\.[jt]sx?$/, /\.vue$/,  /\.vue\?vue/]
     */
    include?: FilterPattern;
}

export { Options };
