/* tslint:disable */ /* eslint-disable */ /* auto-generated by NAPI-RS */ export interface TypeScriptBindingOptions { jsxPragma?: string jsxPragmaFrag?: string onlyRemoveTypeImports?: boolean allowNamespaces?: boolean allowDeclareFields?: boolean } export interface ReactBindingOptions { runtime?: 'classic' | 'automatic' development?: boolean throwIfNamespace?: boolean pure?: boolean importSource?: string pragma?: string pragmaFrag?: string useBuiltIns?: boolean useSpread?: boolean } export interface ArrowFunctionsBindingOptions { spec?: boolean } export interface Es2015BindingOptions { arrowFunction?: ArrowFunctionsBindingOptions } export interface TransformBindingOptions { typescript?: TypeScriptBindingOptions react?: ReactBindingOptions es2015?: Es2015BindingOptions /** * Enable Sourcemap * * * `true` to generate a sourcemap for the code and include it in the result object. * * Default: false */ sourcemap?: boolean } export interface Sourcemap { file?: string mappings?: string sourceRoot?: string sources?: Array sourcesContent?: Array names?: Array } export interface TransformResult { sourceText: string map?: Sourcemap errors: Array } function transform(filename: string, sourceText: string, options?: TransformBindingOptions | undefined | null): TransformResult export interface IsolatedDeclarationsResult { sourceText: string errors: Array } /** TypeScript Isolated Declarations for Standalone DTS Emit */ function isolatedDeclaration(filename: string, sourceText: string): IsolatedDeclarationsResult