import { LazyResult } from 'postcss'; import { ParserPlugin } from '@babel/parser'; declare interface AssetURLOptions { [name: string]: string | string[]; } declare type ASTAttr = { name: string; value: any; dynamic?: boolean; start?: number; end?: number; }; declare type ASTDirective = { name: string; rawName: string; value: string; arg: string | null; isDynamicArg: boolean; modifiers: ASTModifiers | null; start?: number; end?: number; }; declare type ASTElement = { type: 1; tag: string; attrsList: Array; attrsMap: { [key: string]: any; }; rawAttrsMap: { [key: string]: ASTAttr; }; parent: ASTElement | void; children: Array; start?: number; end?: number; processed?: true; static?: boolean; staticRoot?: boolean; staticInFor?: boolean; staticProcessed?: boolean; hasBindings?: boolean; text?: string; attrs?: Array; dynamicAttrs?: Array; props?: Array; plain?: boolean; pre?: true; ns?: string; component?: string; inlineTemplate?: true; transitionMode?: string | null; slotName?: string | null; slotTarget?: string | null; slotTargetDynamic?: boolean; slotScope?: string | null; scopedSlots?: { [name: string]: ASTElement; }; ref?: string; refInFor?: boolean; if?: string; ifProcessed?: boolean; elseif?: string; else?: true; ifConditions?: ASTIfConditions; for?: string; forProcessed?: boolean; key?: string; alias?: string; iterator1?: string; iterator2?: string; staticClass?: string; classBinding?: string; staticStyle?: string; styleBinding?: string; events?: ASTElementHandlers; nativeEvents?: ASTElementHandlers; transition?: string | true; transitionOnAppear?: boolean; model?: { value: string; callback: string; expression: string; }; directives?: Array; forbidden?: true; once?: true; onceProcessed?: boolean; wrapData?: (code: string) => string; wrapListeners?: (code: string) => string; ssrOptimizability?: number; }; declare type ASTElementHandler = { value: string; params?: Array; modifiers: ASTModifiers | null; dynamic?: boolean; start?: number; end?: number; }; declare type ASTElementHandlers = { [key: string]: ASTElementHandler | Array; }; declare type ASTExpression = { type: 2; expression: string; text: string; tokens: Array; static?: boolean; ssrOptimizability?: number; start?: number; end?: number; }; declare type ASTIfCondition = { exp: string | null; block: ASTElement; }; declare type ASTIfConditions = Array; declare type ASTModifiers = { [key: string]: boolean; }; declare type ASTNode = ASTElement | ASTText | ASTExpression; declare type ASTText = { type: 3; text: string; static?: boolean; isComment?: boolean; ssrOptimizability?: number; start?: number; end?: number; }; declare type BindingMetadata = { [key: string]: BindingTypes | undefined; } & { __isScriptSetup?: boolean; }; declare const enum BindingTypes { /** * returned from data() */ DATA = "data", /** * declared as a prop */ PROPS = "props", /** * a local alias of a `