1 | import CJSImportProcessor from "./CJSImportProcessor";
|
2 | import { RawSourceMap } from "./computeSourceMap";
|
3 | import { HelperManager } from "./HelperManager";
|
4 | import NameManager from "./NameManager";
|
5 | import { Scope } from "./parser/tokenizer/state";
|
6 | import TokenProcessor from "./TokenProcessor";
|
7 | export interface TransformResult {
|
8 | code: string;
|
9 | sourceMap?: RawSourceMap;
|
10 | }
|
11 | export interface SucraseContext {
|
12 | tokenProcessor: TokenProcessor;
|
13 | scopes: Array<Scope>;
|
14 | nameManager: NameManager;
|
15 | importProcessor: CJSImportProcessor | null;
|
16 | helperManager: HelperManager;
|
17 | }
|
18 | export declare type Options = import("./Options").Options;
|
19 | export declare type SourceMapOptions = import("./Options").SourceMapOptions;
|
20 | export declare type Transform = import("./Options").Transform;
|
21 | export declare function getVersion(): string;
|
22 | export declare function transform(code: string, options: Options): TransformResult;
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | export declare function getFormattedTokens(code: string, options: Options): string;
|