/** * Sucrase transpiler — strips TypeScript/JSX to runnable JS for the bulb's code * blocks. Not a type-checking compiler: Sucrase removes types without validating * them (that's `tsc`'s job, via `typebulb check`). Shared by typebulb.com and the * CLI so a bulb compiles identically in both — the "just make it run" path. */ export interface TranspileOptions { /** Skip the JSX transform. Use for `server.ts`, which is plain TypeScript. */ serverOnly?: boolean; /** JSX runtime source (e.g. 'react', 'preact'). Ignored when `serverOnly`. */ jsxImportSource?: string; } export interface TranspileResult { code: string; /** Set instead of `code` when Sucrase couldn't parse the source. */ error?: string; } export declare function transpile(source: string, options?: TranspileOptions): TranspileResult; //# sourceMappingURL=index.d.ts.map