import Kdu from 'kdu' import type { PluginFunction, PluginObject, KduConstructor, Directive, InjectionKey, Component } from 'kdu' declare const isKdu2: boolean declare const isKdu3: boolean declare const Kdu2: typeof Kdu | undefined declare const version: string declare const install: (kdu?: typeof Kdu) => void export declare function warn(msg: string, vm?: Component | null): void /** * @deprecated To avoid bringing in all the tree-shakable modules, this API has been deprecated. Use `Kdu2` or named exports instead. */ declare const V: typeof Kdu // accept no generic because Kdu 3 doesn't accept any export declare type Plugin = PluginObject | PluginFunction export type { KNode } from 'kdu' export * from 'kdu' export { V as Kdu, Kdu2, isKdu2, isKdu3, version, install } // #region createApp polyfill export interface App { config: KduConstructor['config'] use: KduConstructor['use'] mixin: KduConstructor['mixin'] component: KduConstructor['component'] directive(name: string): Directive | undefined directive(name: string, directive: Directive): this provide(key: InjectionKey | string, value: T): this mount: Kdu['$mount'] unmount: Kdu['$destroy'] } export declare function createApp(rootComponent: any, rootProps?: any): App // #endregion