export declare const assign: { (target: T, source: U): T & U; (target: T_1, source1: U_1, source2: V): T_1 & U_1 & V; (target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W; (target: object, ...sources: any[]): any; }; /** * Create a event emitter * * @returns An event emitter */ export declare function createEmitter>(): Emittable; /** * Event emitter interface */ export declare interface Emittable = {}> { /** * A map of event names of registered event handlers */ events: EventHandlerMap; /** * Register an event handler with the event type * * @param event - An {@link EventType} * @param handler - An {@link EventHandler}, or a {@link WildcardEventHandler} if you are specified "*" */ on(event: Key | '*', handler: EventHandler | WildcardEventHandler): void; /** * Unregister an event handler for the event type * * @param event - An {@link EventType} * @param handler - An {@link EventHandler}, or a {@link WildcardEventHandler} if you are specified "*" */ off(event: Key | '*', handler: EventHandler | WildcardEventHandler): void; /** * Invoke all handlers with the event type * * @remarks * Note Manually firing "*" handlers should be not supported * * @param event - An {@link EventType} * @param payload - An event payload, optional */ emit(event: Key, payload?: Events[keyof Events]): void; } export declare function escapeHtml(rawText: string): string; /** * Event handler */ export declare type EventHandler = (payload?: T) => void; /** * Event handler list */ export declare type EventHandlerList = Array>; /** * Event handler map */ export declare type EventHandlerMap> = Map | WildcardEventHandlerList>; /** * Event type */ export declare type EventType = string | symbol; export declare function format(message: string, ...args: any): string; export declare const friendlyJSONstringify: (json: unknown) => string; export declare function generateCodeFrame(source: string, start?: number, end?: number): string; export declare const generateFormatCacheKey: (locale: string, key: string, source: string) => string; export declare const getGlobalThis: () => any; export declare function hasOwn(obj: object | Array, key: string): boolean; /** * Original Utilities * written by kazuya kawaguchi */ export declare const inBrowser: boolean; /** * Useful Utilities By Evan you * Modified by kazuya kawaguchi * MIT License * https://github.com/vuejs/vue-next/blob/master/packages/shared/src/index.ts * https://github.com/vuejs/vue-next/blob/master/packages/shared/src/codeframe.ts */ export declare const isArray: (arg: any) => arg is any[]; export declare const isBoolean: (val: unknown) => val is boolean; export declare const isDate: (val: unknown) => val is Date; export declare const isEmptyObject: (val: unknown) => val is boolean; export declare const isFunction: (val: unknown) => val is Function; export declare const isNumber: (val: unknown) => val is number; export declare const isObject: (val: unknown) => val is Record; export declare const isPlainObject: (val: unknown) => val is object; export declare const isPromise: (val: unknown) => val is Promise; export declare const isRegExp: (val: unknown) => val is RegExp; export declare const isString: (val: unknown) => val is string; export declare const isSymbol: (val: unknown) => val is symbol; export declare const makeSymbol: (name: string) => symbol | string; export declare let mark: (tag: string) => void | undefined; export declare let measure: (name: string, startTag: string, endTag: string) => void | undefined; export declare const objectToString: () => string; export declare const toDisplayString: (val: unknown) => string; export declare const toTypeString: (value: unknown) => string; export declare function warn(msg: string, err?: Error): void; /** * Wildcard event handler */ export declare type WildcardEventHandler> = (event: keyof T, payload?: T[keyof T]) => void; /** * Wildcard event handler list */ export declare type WildcardEventHandlerList> = Array>; export { }