CompileOptions
Second argument to compile(source, options?).
CompileResult
Return value of compile(source, options?).
Runtime helpers
The native emit mode injects imports from luau2ts/runtime for stdlib semantics that don't map 1:1 to JavaScript. These helpers are exposed via the package's ./runtime subpath export so consumers of the compiled output can resolve them at runtime.
Macros
Macros are call-site rewriters: when the compiler sees a specific Luau call shape, it emits idiomatic TypeScript instead of a generic helper invocation. They are mode-aware (rbxts mode emits roblox-ts-style output, native mode emits runtime-helper style).