import { camelize } from '@vue/shared'; import { capitalize } from '@vue/shared'; import { ComponentPropsOptions as ComponentPropsOptions_2 } from '@vue/runtime-core'; import { computed as computed_2 } from '@vue/reactivity'; import { ComputedGetter } from '@vue/reactivity'; import { ComputedRef } from '@vue/reactivity'; import { ComputedSetter } from '@vue/reactivity'; import { customRef } from '@vue/reactivity'; import { CustomRefFactory } from '@vue/reactivity'; import { DebuggerEvent } from '@vue/reactivity'; import { DebuggerEventExtraInfo } from '@vue/reactivity'; import { DebuggerOptions } from '@vue/reactivity'; import { DeepReadonly } from '@vue/reactivity'; import { effect } from '@vue/reactivity'; import { EffectScheduler } from '@vue/reactivity'; import { EffectScope } from '@vue/reactivity'; import { effectScope } from '@vue/reactivity'; import { getCurrentScope } from '@vue/reactivity'; import { IfAny } from '@vue/shared'; import { isProxy } from '@vue/reactivity'; import { isReactive } from '@vue/reactivity'; import { isReadonly } from '@vue/reactivity'; import { isRef } from '@vue/reactivity'; import { isShallow } from '@vue/reactivity'; import { LooseRequired } from '@vue/shared'; import { markRaw } from '@vue/reactivity'; import { normalizeClass } from '@vue/shared'; import { normalizeProps } from '@vue/shared'; import { normalizeStyle } from '@vue/shared'; import { onScopeDispose } from '@vue/reactivity'; import { proxyRefs } from '@vue/reactivity'; import { Raw } from '@vue/reactivity'; import { reactive } from '@vue/reactivity'; import { ReactiveEffect } from '@vue/reactivity'; import { ReactiveEffectOptions } from '@vue/reactivity'; import { ReactiveEffectRunner } from '@vue/reactivity'; import { ReactiveFlags } from '@vue/reactivity'; import { readonly } from '@vue/reactivity'; import { Ref } from '@vue/reactivity'; import { ref } from '@vue/reactivity'; import { ShallowReactive } from '@vue/reactivity'; import { shallowReactive } from '@vue/reactivity'; import { shallowReadonly } from '@vue/reactivity'; import { ShallowRef } from '@vue/reactivity'; import { shallowRef } from '@vue/reactivity'; import { ShallowUnwrapRef } from '@vue/reactivity'; import { ShapeFlags } from '@vue/shared'; import { SlotFlags } from '@vue/shared'; import { stop as stop_2 } from '@vue/reactivity'; import { toDisplayString } from '@vue/shared'; import { toHandlerKey } from '@vue/shared'; import { toRaw } from '@vue/reactivity'; import { ToRef } from '@vue/reactivity'; import { toRef } from '@vue/reactivity'; import { ToRefs } from '@vue/reactivity'; import { toRefs } from '@vue/reactivity'; import { TrackOpTypes } from '@vue/reactivity'; import { TriggerOpTypes } from '@vue/reactivity'; import { triggerRef } from '@vue/reactivity'; import { UnionToIntersection } from '@vue/shared'; import { unref } from '@vue/reactivity'; import { UnwrapNestedRefs } from '@vue/reactivity'; import { UnwrapRef } from '@vue/reactivity'; import { WritableComputedOptions } from '@vue/reactivity'; import { WritableComputedRef } from '@vue/reactivity'; /** * Default allowed non-declared props on component in TSX */ export declare interface AllowedComponentProps { class?: unknown; style?: unknown; } export declare interface App { version: string; config: AppConfig; use(plugin: Plugin_2, ...options: any[]): this; mixin(mixin: ComponentOptions): this; component(name: string): Component | undefined; component(name: string, component: Component): this; directive(name: string): Directive | undefined; directive(name: string, directive: Directive): this; mount(rootContainer: HostElement | string, isHydrate?: boolean, isSVG?: boolean): ComponentPublicInstance; unmount(): void; provide(key: InjectionKey | string, value: T): this; _uid: number; _component: ConcreteComponent; _props: Data | null; _container: HostElement | null; _context: AppContext; _instance: ComponentInternalInstance | null; /** * v2 compat only */ filter?(name: string): Function | undefined; filter?(name: string, filter: Function): this; /* Excluded from this release type: _createRoot */ } export declare interface AppConfig { readonly isNativeTag?: (tag: string) => boolean; performance: boolean; optionMergeStrategies: Record; globalProperties: ComponentCustomProperties & Record; errorHandler?: (err: unknown, instance: ComponentPublicInstance | null, info: string) => void; warnHandler?: (msg: string, instance: ComponentPublicInstance | null, trace: string) => void; /** * Options to pass to `@vue/compiler-dom`. * Only supported in runtime compiler build. */ compilerOptions: RuntimeCompilerOptions; /** * @deprecated use config.compilerOptions.isCustomElement */ isCustomElement?: (tag: string) => boolean; /** * Temporary config for opt-in to unwrap injected refs. * TODO deprecate in 3.3 */ unwrapInjectedRef?: boolean; } export declare interface AppContext { app: App; config: AppConfig; mixins: ComponentOptions[]; components: Record; directives: Record; provides: Record; /* Excluded from this release type: optionsCache */ /* Excluded from this release type: propsCache */ /* Excluded from this release type: emitsCache */ /* Excluded from this release type: reload */ /* Excluded from this release type: filters */ } declare interface AppRecord { id: number; app: App; version: string; types: Record; } export declare type AsyncComponentLoader = () => Promise>; export declare interface AsyncComponentOptions { loader: AsyncComponentLoader; loadingComponent?: Component; errorComponent?: Component; delay?: number; timeout?: number; suspensible?: boolean; onError?: (error: Error, retry: () => void, fail: () => void, attempts: number) => any; } declare type AsyncComponentResolveResult = T | { default: T; }; export declare const BaseTransition: new () => { $props: BaseTransitionProps; }; export declare interface BaseTransitionProps { mode?: 'in-out' | 'out-in' | 'default'; appear?: boolean; persisted?: boolean; onBeforeEnter?: Hook<(el: HostElement) => void>; onEnter?: Hook<(el: HostElement, done: () => void) => void>; onAfterEnter?: Hook<(el: HostElement) => void>; onEnterCancelled?: Hook<(el: HostElement) => void>; onBeforeLeave?: Hook<(el: HostElement) => void>; onLeave?: Hook<(el: HostElement, done: () => void) => void>; onAfterLeave?: Hook<(el: HostElement) => void>; onLeaveCancelled?: Hook<(el: HostElement) => void>; onBeforeAppear?: Hook<(el: HostElement) => void>; onAppear?: Hook<(el: HostElement, done: () => void) => void>; onAfterAppear?: Hook<(el: HostElement) => void>; onAppearCancelled?: Hook<(el: HostElement) => void>; } declare const enum BooleanFlags { shouldCast = 0, shouldCastTrue = 1 } export declare function callWithAsyncErrorHandling(fn: Function | Function[], instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any[]; export declare function callWithErrorHandling(fn: Function, instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any; export { camelize } export { capitalize } /** * Use this for features with the same syntax but with mutually exclusive * behavior in 2 vs 3. Only warn if compat is enabled. * e.g. render function */ declare function checkCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): boolean; declare interface ClassComponent { new (...args: any[]): ComponentPublicInstance; __vccOpts: ComponentOptions; } export declare function cloneVNode(vnode: VNode, extraProps?: (Data & VNodeProps) | null, mergeRef?: boolean): VNode; declare const Comment_2: unique symbol; export { Comment_2 as Comment } declare type CompatConfig = Partial> & { MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3); }; /* Excluded from this release type: compatUtils */ /** * @deprecated the default `Vue` export has been removed in Vue 3. The type for * the default export is provided only for migration purposes. Please use * named imports instead - e.g. `import { createApp } from 'vue'`. */ export declare type CompatVue = Pick & { configureCompat: typeof configureCompat; new (options?: ComponentOptions): LegacyPublicInstance; version: string; config: AppConfig & LegacyConfig; nextTick: typeof nextTick; use(plugin: Plugin_2, ...options: any[]): CompatVue; mixin(mixin: ComponentOptions): CompatVue; component(name: string): Component | undefined; component(name: string, component: Component): CompatVue; directive(name: string): Directive | undefined; directive(name: string, directive: Directive): CompatVue; compile(template: string): RenderFunction; /** * @deprecated Vue 3 no longer supports extending constructors. */ extend: (options?: ComponentOptions) => CompatVue; /** * @deprecated Vue 3 no longer needs set() for adding new properties. */ set(target: any, key: string | number | symbol, value: any): void; /** * @deprecated Vue 3 no longer needs delete() for property deletions. */ delete(target: any, key: string | number | symbol): void; /** * @deprecated use `reactive` instead. */ observable: typeof reactive; /** * @deprecated filters have been removed from Vue 3. */ filter(name: string, arg?: any): null; /* Excluded from this release type: cid */ /* Excluded from this release type: options */ /* Excluded from this release type: util */ /* Excluded from this release type: super */ }; declare interface CompiledSlotDescriptor { name: string; fn: SSRSlot; key?: string; } /** * A type used in public APIs where a component type is expected. * The constructor type is an artificial type returned by defineComponent(). */ export declare type Component = ConcreteComponent | ComponentPublicInstanceConstructor; /** * Interface for declaring custom options. * * @example * ```ts * declare module '@vue/runtime-core' { * interface ComponentCustomOptions { * beforeRouteUpdate?( * to: Route, * from: Route, * next: () => void * ): void * } * } * ``` */ export declare interface ComponentCustomOptions { } /** * Custom properties added to component instances in any way and can be accessed through `this` * * @example * Here is an example of adding a property `$router` to every component instance: * ```ts * import { createApp } from 'vue' * import { Router, createRouter } from 'vue-router' * * declare module '@vue/runtime-core' { * interface ComponentCustomProperties { * $router: Router * } * } * * // effectively adding the router to every component instance * const app = createApp({}) * const router = createRouter() * app.config.globalProperties.$router = router * * const vm = app.mount('#app') * // we can access the router from the instance * vm.$router.push('/') * ``` */ export declare interface ComponentCustomProperties { } /** * For extending allowed non-declared props on components in TSX */ export declare interface ComponentCustomProps { } export declare type ComponentInjectOptions = string[] | ObjectInjectOptions; /** * We expose a subset of properties on the internal instance as they are * useful for advanced external libraries and tools. */ export declare interface ComponentInternalInstance { uid: number; type: ConcreteComponent; parent: ComponentInternalInstance | null; root: ComponentInternalInstance; appContext: AppContext; /** * Vnode representing this component in its parent's vdom tree */ vnode: VNode; /* Excluded from this release type: next */ /** * Root vnode of this component's own vdom tree */ subTree: VNode; /** * Render effect instance */ effect: ReactiveEffect; /** * Bound effect runner to be passed to schedulers */ update: SchedulerJob; /* Excluded from this release type: render */ /* Excluded from this release type: ssrRender */ /* Excluded from this release type: provides */ /* Excluded from this release type: scope */ /* Excluded from this release type: accessCache */ /* Excluded from this release type: renderCache */ /* Excluded from this release type: components */ /* Excluded from this release type: directives */ /* Excluded from this release type: filters */ /* Excluded from this release type: propsOptions */ /* Excluded from this release type: emitsOptions */ /* Excluded from this release type: inheritAttrs */ /* Excluded from this release type: isCE */ /* Excluded from this release type: ceReload */ proxy: ComponentPublicInstance | null; exposed: Record | null; exposeProxy: Record | null; /* Excluded from this release type: withProxy */ /* Excluded from this release type: ctx */ data: Data; props: Data; attrs: Data; slots: InternalSlots; refs: Data; emit: EmitFn; /* Excluded from this release type: emitted */ /* Excluded from this release type: propsDefaults */ /* Excluded from this release type: setupState */ /* Excluded from this release type: devtoolsRawSetupState */ /* Excluded from this release type: setupContext */ /* Excluded from this release type: suspense */ /* Excluded from this release type: suspenseId */ /* Excluded from this release type: asyncDep */ /* Excluded from this release type: asyncResolved */ isMounted: boolean; isUnmounted: boolean; isDeactivated: boolean; /* Excluded from this release type: bc */ /* Excluded from this release type: c */ /* Excluded from this release type: bm */ /* Excluded from this release type: m */ /* Excluded from this release type: bu */ /* Excluded from this release type: u */ /* Excluded from this release type: bum */ /* Excluded from this release type: um */ /* Excluded from this release type: rtc */ /* Excluded from this release type: rtg */ /* Excluded from this release type: a */ /* Excluded from this release type: da */ /* Excluded from this release type: ec */ /* Excluded from this release type: sp */ /* Excluded from this release type: f */ /* Excluded from this release type: n */ /* Excluded from this release type: ut */ } declare interface ComponentInternalOptions { /* Excluded from this release type: __scopeId */ /* Excluded from this release type: __cssModules */ /* Excluded from this release type: __hmrId */ /** * Compat build only, for bailing out of certain compatibility behavior */ __isBuiltIn?: boolean; /** * This one should be exposed so that devtools can make use of it */ __file?: string; /** * name inferred from filename */ __name?: string; } export declare type ComponentObjectPropsOptions

= { [K in keyof P]: Prop | null; }; export declare type ComponentOptions = ComponentOptionsBase & ThisType>>; export declare interface ComponentOptionsBase extends LegacyOptions, ComponentInternalOptions, ComponentCustomOptions { setup?: (this: void, props: Readonly> & UnionToIntersection>>>, ctx: SetupContext) => Promise | RawBindings | RenderFunction | void; name?: string; template?: string | object; render?: Function; components?: Record; directives?: Record; inheritAttrs?: boolean; emits?: (E | EE[]) & ThisType; expose?: string[]; serverPrefetch?(): Promise; compilerOptions?: RuntimeCompilerOptions; /* Excluded from this release type: ssrRender */ /* Excluded from this release type: __ssrInlineRender */ /* Excluded from this release type: __asyncLoader */ /* Excluded from this release type: __asyncResolved */ call?: (this: unknown, ...args: unknown[]) => never; __isFragment?: never; __isTeleport?: never; __isSuspense?: never; __defaults?: Defaults; } export declare type ComponentOptionsMixin = ComponentOptionsBase; export declare type ComponentOptionsWithArrayProps & EmitsToProps> = ComponentOptionsBase & { props: PropNames[]; } & ThisType>; export declare type ComponentOptionsWithObjectProps> & EmitsToProps, Defaults = ExtractDefaultPropTypes> = ComponentOptionsBase & { props: PropsOptions & ThisType; } & ThisType>; export declare type ComponentOptionsWithoutProps> = ComponentOptionsBase & { props?: undefined; } & ThisType>; export declare type ComponentPropsOptions

= ComponentObjectPropsOptions

| string[]; export declare type ComponentProvideOptions = ObjectProvideOptions | Function; export declare type ComponentPublicInstance

, I extends ComponentInjectOptions = {}> = { $: ComponentInternalInstance; $data: D; $props: MakeDefaultsOptional extends true ? Partial & Omit

: P & PublicProps; $attrs: Data; $refs: Data; $slots: Slots; $root: ComponentPublicInstance | null; $parent: ComponentPublicInstance | null; $emit: EmitFn; $el: any; $options: Options & MergedComponentOptionsOverride; $forceUpdate: () => void; $nextTick: typeof nextTick; $watch any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R]) => any : (...args: any) => any, options?: WatchOptions): WatchStopHandle; } & P & ShallowUnwrapRef & UnwrapNestedRefs & ExtractComputedReturns & M & ComponentCustomProperties & InjectToObject; declare type ComponentPublicInstanceConstructor = ComponentPublicInstance, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = { __isFragment?: never; __isTeleport?: never; __isSuspense?: never; new (...args: any[]): T; }; declare type ComponentWatchOptionItem = WatchOptionItem | WatchOptionItem[]; declare type ComponentWatchOptions = Record; export declare const computed: typeof computed_2; export { ComputedGetter } export declare type ComputedOptions = Record | WritableComputedOptions>; export { ComputedRef } export { ComputedSetter } /** * Concrete component type matches its actual value: it's either an options * object, or a function. Use this where the code expects to work with actual * values, e.g. checking if its a function or not. This is mostly for internal * implementation code. */ export declare type ConcreteComponent = ComponentOptions | FunctionalComponent; declare function configureCompat(config: CompatConfig): void; declare interface Constructor

{ __isFragment?: never; __isTeleport?: never; __isSuspense?: never; new (...args: any[]): { $props: P; }; } export declare type CreateAppFunction = (rootComponent: Component, rootProps?: Data | null) => App; /** * Create a block root vnode. Takes the same exact arguments as `createVNode`. * A block root keeps track of dynamic nodes within the block in the * `dynamicChildren` array. * * @private */ export declare function createBlock(type: VNodeTypes | ClassComponent, props?: Record | null, children?: any, patchFlag?: number, dynamicProps?: string[]): VNode; /** * @private */ export declare function createCommentVNode(text?: string, asBlock?: boolean): VNode; declare function createCompatVue(createApp: CreateAppFunction, createSingletonApp: CreateAppFunction): CompatVue; declare function createComponentInstance(vnode: VNode, parent: ComponentInternalInstance | null, suspense: SuspenseBoundary | null): ComponentInternalInstance; export declare type CreateComponentPublicInstance

& IntersectionMixin, PublicP = UnwrapMixinsType & EnsureNonVoid

, PublicB = UnwrapMixinsType & EnsureNonVoid, PublicD = UnwrapMixinsType & EnsureNonVoid, PublicC extends ComputedOptions = UnwrapMixinsType & EnsureNonVoid, PublicM extends MethodOptions = UnwrapMixinsType & EnsureNonVoid, PublicDefaults = UnwrapMixinsType & EnsureNonVoid> = ComponentPublicInstance, I>; /** * @private */ export declare function createElementBlock(type: string | typeof Fragment, props?: Record | null, children?: any, patchFlag?: number, dynamicProps?: string[], shapeFlag?: number): VNode; export declare function createElementVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, shapeFlag?: number | ShapeFlags, isBlockNode?: boolean, needFullChildrenNormalization?: boolean): VNode; export declare function createHydrationRenderer(options: RendererOptions): HydrationRenderer; /* Excluded from this release type: createPropsRestProxy */ declare function createRecord(id: string, initialDef: HMRComponent): boolean; /** * The createRenderer function accepts two generic arguments: * HostNode and HostElement, corresponding to Node and Element types in the * host environment. For example, for runtime-dom, HostNode would be the DOM * `Node` interface and HostElement would be the DOM `Element` interface. * * Custom renderers can pass in the platform specific types like this: * * ``` js * const { render, createApp } = createRenderer({ * patchProp, * ...nodeOps * }) * ``` */ export declare function createRenderer(options: RendererOptions): Renderer; /** * Compiler runtime helper for creating dynamic slots object * @private */ export declare function createSlots(slots: Record, dynamicSlots: (CompiledSlotDescriptor | CompiledSlotDescriptor[] | undefined)[]): Record; /** * @private */ export declare function createStaticVNode(content: string, numberOfNodes: number): VNode; declare function createSuspenseBoundary(vnode: VNode, parent: SuspenseBoundary | null, parentComponent: ComponentInternalInstance | null, container: RendererElement, hiddenContainer: RendererElement, anchor: RendererNode | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, isHydrating?: boolean): SuspenseBoundary; /** * @private */ export declare function createTextVNode(text?: string, flag?: number): VNode; export declare const createVNode: typeof _createVNode; declare function _createVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, isBlockNode?: boolean): VNode; export { customRef } export { CustomRefFactory } declare type Data = Record; export { DebuggerEvent } export { DebuggerEventExtraInfo } declare type DebuggerHook = (e: DebuggerEvent) => void; export { DebuggerOptions } export { DeepReadonly } declare type DefaultFactory = (props: Data) => T | null | undefined; declare type DefaultKeys = { [K in keyof T]: T[K] extends { default: any; } | BooleanConstructor | { type: BooleanConstructor; } ? T[K] extends { type: BooleanConstructor; required: true; } ? never : K : never; }[keyof T]; export declare function defineAsyncComponent(source: AsyncComponentLoader | AsyncComponentOptions): T; export declare type DefineComponent : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps), Defaults = ExtractDefaultPropTypes> = ComponentPublicInstanceConstructor & Props> & ComponentOptionsBase & PP; export declare function defineComponent(setup: (props: Readonly, ctx: SetupContext) => RawBindings | RenderFunction): DefineComponent; export declare function defineComponent(options: ComponentOptionsWithoutProps): DefineComponent; export declare function defineComponent(options: ComponentOptionsWithArrayProps): DefineComponent, RawBindings, D, C, M, Mixin, Extends, E, EE>; export declare function defineComponent, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string>(options: ComponentOptionsWithObjectProps): DefineComponent; /** * Vue `