import type { Puppet } from '../puppet/puppet-abstract.js'; import type { PuppetInterface } from '../puppet/puppet-interface.js'; import type { PuppetSkeleton } from '../puppet/puppet-skeleton.js'; declare const validateMixin: (mixinBase: MixinBase) => ((abstract new (...args: any[]) => { readonly id: string; readonly options: import("../schemas/puppet.js").PuppetOptions; wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync; start(): Promise; stop(): Promise; emit(event: any, ...args: any): boolean; addListener(event: E, listener: import("../puppet/events.js").PuppetEventListener[E]): any; on(event: E_1, listener: import("../puppet/events.js").PuppetEventListener[E_1]): any; once(event: E_2, listener: import("../puppet/events.js").PuppetEventListener[E_2]): any; prependListener(event: E_3, listener: import("../puppet/events.js").PuppetEventListener[E_3]): any; prependOnceListener(event: E_4, listener: import("../puppet/events.js").PuppetEventListener[E_4]): any; off(event: E_5, listener: import("../puppet/events.js").PuppetEventListener[E_5]): any; removeAllListeners(event?: E_6 | undefined): any; removeListener(event: E_7, listener: import("../puppet/events.js").PuppetEventListener[E_7]): any; eventNames(): (string | symbol)[]; rawListeners(event: E_8): Function[]; listeners(event: E_9): Function[]; listenerCount(event: E_10): number; getMaxListeners(): number; setMaxListeners(maxListeners: number): any; __events: import("../puppet/events.js").PuppetEventListener; }) & { /** * Check if obj satisfy Puppet interface */ validInterface(target: any): target is PuppetInterface; /** * loose check instance of Puppet */ validInstance(target: any): target is Puppet; /** * Huan(202110): I believe `valid()` will be a better performance than `validInterface()` * because it will check `instanceof` first, which I believe it will be the most case * and it will be faster than `interfaceOfPuppet()` */ valid(target: any): target is PuppetInterface; }) & MixinBase; declare type ValidateMixin = ReturnType; /** * Huan(202110): it seems that that static properties should not be mixed in */ declare type ProtectedPropertyValidateMixin = never; export type { ProtectedPropertyValidateMixin, ValidateMixin, }; export { validateMixin }; //# sourceMappingURL=validate-mixin.d.ts.map