import { AttachedScope } from '@vue-macros/common'; import { Node } from '@babel/types'; import { HmrContext, ModuleNode } from 'vite'; interface FileContextComponent { code: string; body: string; node: Node; scopes: string[]; } interface FileContext { components: FileContextComponent[]; imports: string[]; } type SetupComponentContext = Record; declare function scanSetupComponent(code: string, id: string): FileContext | undefined; declare function transformSetupComponent(code: string, _id: string, ctx: SetupComponentContext): { code: string; map: any; } | undefined; declare function loadSetupComponent(virtualId: string, ctx: SetupComponentContext, root: string): string | undefined; declare function hotUpdateSetupComponent({ file, modules, read }: HmrContext, ctx: SetupComponentContext): Promise; declare function transformPost(code: string, _id: string): { code: string; map: any; } | undefined; declare function getScopeDecls(scope: AttachedScope | undefined): string[]; export { SetupComponentContext as S, transformPost as a, getScopeDecls as g, hotUpdateSetupComponent as h, loadSetupComponent as l, scanSetupComponent as s, transformSetupComponent as t };