import * as ts from 'typescript'; import { StylePreprocessor, PostCssPreprocessor } from './css-preprocessors'; /** * tsconfig and transformer options */ export interface TSConfigOptions { compilerOptions?: ts.CompilerOptions; transformers?: ts.CustomTransformers; } /** * Synchronous transpile of the give string code * @param code extract code form the file * @param tsOptions typescript options */ export declare function transpile(code: string, tsOptions?: TSConfigOptions): { code: string; map: string; }; /** * This will asynchronous transfile the file * @param file file path of the typescript or javascript file * @param content extract code of the file * @param opts transform options includes typescript compilerOptions and cssOptions */ export declare function transform(file: string, content: string, opts?: { compilerOptions?: ts.CompilerOptions; cssOptions?: StylePreprocessor | PostCssPreprocessor; }): Promise<{ code: string; map: string; }>;