UNPKG

711 BTypeScriptView Raw
1import State from "../tokenizer/state";
2export declare let isJSXEnabled: boolean;
3export declare let isTypeScriptEnabled: boolean;
4export declare let isFlowEnabled: boolean;
5export declare let state: State;
6export declare let input: string;
7export declare let nextContextId: number;
8export declare function getNextContextId(): number;
9export declare function augmentError(error: any): any;
10export declare class Loc {
11 line: number;
12 column: number;
13 constructor(line: number, column: number);
14}
15export declare function locationForIndex(pos: number): Loc;
16export declare function initParser(inputCode: string, isJSXEnabledArg: boolean, isTypeScriptEnabledArg: boolean, isFlowEnabledArg: boolean): void;