import MagicString from "magic-string"; //#region src/transforms.d.ts type AstNode = { type: string; start: number; end: number; [key: string]: unknown; }; type AstProgram = AstNode & { body: AstNode[]; }; type UseClientDirective = { node: AstNode; directive: AstNode; name: string; parent?: AstNode; parentKey?: string; }; type UseClientAnalysis = { moduleDirective?: AstNode; inlineDirectives: UseClientDirective[]; }; type ClientReference = { mod: string; deps: string[]; }; type TransformResult = { code: string; map: ReturnType; }; type TransformReferenceOptions = { id: string; root?: string; base?: string; references?: ReadonlyMap; placeholders?: boolean; }; declare function analyzeUseClientDirectives(code: string, ast: AstProgram): UseClientAnalysis; declare function transformUseClientForServer(code: string, ast: AstProgram, options: TransformReferenceOptions): TransformResult | null; declare function transformUseClientForClient(code: string, ast: AstProgram, options: TransformReferenceOptions): TransformResult | null; declare function replaceClientReferencePlaceholders(code: string, references: ReadonlyMap): string; declare function patchClientReferencePlaceholdersInBundle(bundle: Record, references: ReadonlyMap): void; declare function cleanId(id: string): string; declare function isJavaScriptId(id: string): boolean; declare function publicOutputPath(fileName: string, base?: string): string; //#endregion export { AstNode, AstProgram, ClientReference, TransformReferenceOptions, TransformResult, UseClientAnalysis, UseClientDirective, analyzeUseClientDirectives, cleanId, isJavaScriptId, patchClientReferencePlaceholdersInBundle, publicOutputPath, replaceClientReferencePlaceholders, transformUseClientForClient, transformUseClientForServer }; //# sourceMappingURL=transforms.d.mts.map