import { BaseCodegenResult, BindingMetadata, BindingMetadata as BindingMetadata$1, CompilerError, CompilerError as CompilerError$1, CompilerOptions as CompilerOptions$1, CompilerOptions as CompilerOptions$2, ParserOptions, RawSourceMap, RootNode, SourceLocation, extractIdentifiers, generateCodeFrame, isInDestructureAssignment, isStaticProperty, walkIdentifiers } from "@vue/compiler-core"; import { ParserPlugin, parse as babelParse } from "@babel/parser"; import "source-map-js"; import "lru-cache"; import { LazyResult, Result } from "postcss"; import MagicString, { default as MagicString$1 } from "magic-string"; import { CallExpression as CallExpression$1, Expression as Expression$1, Node as Node$1, ObjectPattern, Program as Program$1, Statement as Statement$1, TSCallSignatureDeclaration, TSFunctionType, TSMethodSignature, TSModuleDeclaration, TSPropertySignature, TSType } from "@babel/types"; import "@vue/shared"; //#region temp/packages/compiler-sfc/src/template/transformAssetUrl.d.ts export interface AssetURLTagConfig { [name: string]: string[]; } export interface AssetURLOptions { /** * If base is provided, instead of transforming relative asset urls into * imports, they will be directly rewritten to absolute urls. */ base?: string | null; /** * If true, also processes absolute urls. */ includeAbsolute?: boolean; tags?: AssetURLTagConfig; } //#endregion //#region temp/packages/compiler-sfc/src/compileTemplate.d.ts export interface TemplateCompiler { compile(source: string | RootNode, options: CompilerOptions$2): BaseCodegenResult; parse(template: string, options: ParserOptions): RootNode; } export interface SFCTemplateCompileResults { code: string; ast?: unknown; preamble?: string; multiRoot?: boolean; source: string; tips: string[]; errors: (string | CompilerError$1)[]; map?: RawSourceMap; helpers?: Set; } export interface SFCTemplateCompileOptions { source: string; ast?: RootNode; filename: string; id: string; scoped?: boolean; slotted?: boolean; isProd?: boolean; vapor?: boolean; ssr?: boolean; ssrCssVars?: string[]; inMap?: RawSourceMap; compiler?: TemplateCompiler; compilerOptions?: CompilerOptions$2; preprocessLang?: string; preprocessOptions?: any; /** * In some cases, compiler-sfc may not be inside the project root (e.g. when * linked or globally installed). In such cases a custom `require` can be * passed to correctly resolve the preprocessors. */ preprocessCustomRequire?: (id: string) => any; /** * Configure what tags/attributes to transform into asset url imports, * or disable the transform altogether with `false`. */ transformAssetUrls?: AssetURLOptions | AssetURLTagConfig | boolean; } export declare function compileTemplate(options: SFCTemplateCompileOptions): SFCTemplateCompileResults; //#endregion //#region temp/packages/compiler-sfc/src/compileScript.d.ts export interface SFCScriptCompileOptions { /** * Scope ID for prefixing injected CSS variables. * This must be consistent with the `id` passed to `compileStyle`. */ id: string; /** * Production mode. Used to determine whether to generate hashed CSS variables */ isProd?: boolean; /** * Enable/disable source map. Defaults to true. */ sourceMap?: boolean; /** * https://babeljs.io/docs/en/babel-parser#plugins */ babelParserPlugins?: ParserPlugin[]; /** * A list of files to parse for global types to be made available for type * resolving in SFC macros. The list must be fully resolved file system paths. */ globalTypeFiles?: string[]; /** * Compile the template and inline the resulting render function * directly inside setup(). * - Only affects `