import type { Plugin } from 'rollup'; /** * A plugin that rewrites TypeScript's emitted enums into a tree-shakeable * form -- the same as esbuild. * * For example, consider this TypeScript code: * ````ts * export enum X { a, b=10, c } * ```` * * This is what tsc emits: * ````ts * export var X; * (function (X) { * X[X["a"] = 0] = "a"; * X[X["b"] = 10] = "b"; * X[X["c"] = 11] = "c"; * })(X || (X = {})); * ```` * * And this is how this plugin transforms the above: * ````ts * export var X = ((X) => { * X[X["a"] = 0] = "a"; * X[X["b"] = 10] = "b"; * X[X["c"] = 11] = "c"; * return X; * })(X || {}); * ```` */ export declare function enums(): Plugin;