import type { IsolatedDeclarationsOptions } from "oxc-transform"; import type { TranspileOptions } from "typescript"; export interface TransformResult { code: string; errors: Array; map?: string; } /** * Transform isolated declarations with `oxc-transform`. */ export declare function oxcTransform(id: string, code: string, transformOptions?: IsolatedDeclarationsOptions): Promise; /** * Transform isolated declarations with `@swc/core`. */ export declare function swcTransform(id: string, code: string): Promise; /** * Transform isolated declarations with `typescript`. */ export declare function tsTransform(id: string, code: string, transformOptions?: TranspileOptions, sourceMap?: boolean): Promise; export declare function appendMapUrl(map: string, filename: string): string; export declare function generateDtsMap(mappings: string, src: string, dts: string): string;