import { type ExistingRawSourceMap } from 'rolldown'; export type SystemJsOutputFormat = 'system-register' | 'commonjs-registration'; export type SystemJsReferenceKind = 'static' | 'dynamic'; export type TransformSystemJsOptions = Readonly<{ /** Final JavaScript emitted by Rolldown with ES module syntax still present. */ code: string; filename: string; format: SystemJsOutputFormat; sourcemap: boolean; /** Converts physical Rolldown references into the logical IDs used by the Mini capsule registry. */ resolveReference(reference: string, kind: SystemJsReferenceKind): string; }>; export type TransformSystemJsResult = Readonly<{ code: string; map: ExistingRawSourceMap | null; }>; /** * Converts one final Rolldown ES chunk into System.register data without rebuilding its complete AST through Babel. * * The compiler intentionally accepts Rolldown's normalized final-chunk grammar rather than arbitrary source modules. Every * unsupported module declaration fails before source edits begin, so a future Rolldown output change cannot be miscompiled. */ export declare function transformSystemJs(options: TransformSystemJsOptions): TransformSystemJsResult;