/** Compatibility for Svelte v4 <-> v5 */ import type ESTree from "estree"; import type * as SvAST from "./svelte-ast-types.js"; import type * as Compiler from "./svelte-ast-types-for-v5.js"; export type Child = Compiler.AttachTag | Compiler.Text | Compiler.Tag | Compiler.ElementLike | Compiler.Block | Compiler.Comment; type HasChildren = { children?: SvAST.TemplateNode[]; }; export declare function getFragmentFromRoot(svelteAst: Compiler.Root | SvAST.AstLegacy): SvAST.Fragment | Compiler.Fragment | undefined; export declare function getInstanceFromRoot(svelteAst: Compiler.Root | SvAST.AstLegacy): SvAST.Script | Compiler.Script | null | undefined; export declare function getModuleFromRoot(svelteAst: Compiler.Root | SvAST.AstLegacy): SvAST.Script | Compiler.Script | null | undefined; /** * Source range of the instance `