1 | import { PluginItem } from 'next/dist/compiled/babel/core';
|
2 | declare type StyledJsxPlugin = [string, any] | string;
|
3 | declare type StyledJsxBabelOptions = {
|
4 | plugins?: StyledJsxPlugin[];
|
5 | 'babel-test'?: boolean;
|
6 | } | undefined;
|
7 | declare type NextBabelPresetOptions = {
|
8 | 'preset-env'?: any;
|
9 | 'preset-react'?: any;
|
10 | 'class-properties'?: any;
|
11 | 'transform-runtime'?: any;
|
12 | 'styled-jsx'?: StyledJsxBabelOptions;
|
13 | 'preset-typescript'?: any;
|
14 | };
|
15 | declare type BabelPreset = {
|
16 | presets?: PluginItem[] | null;
|
17 | plugins?: PluginItem[] | null;
|
18 | sourceType?: 'script' | 'module' | 'unambiguous';
|
19 | overrides?: Array<{
|
20 | test: RegExp;
|
21 | } & Omit<BabelPreset, 'overrides'>>;
|
22 | };
|
23 | declare const _default: (api: any, options?: NextBabelPresetOptions) => BabelPreset;
|
24 | export default _default;
|