import type { BaseDecorator, BaseInterface } from '../Base/types.js'; import type { Base } from '../Base/index.js'; import type { MutationServiceOptions, MutationServiceProps } from '../services/index.js'; export type MutationDecoratorOptions = MutationServiceOptions & { target?: (this: Base, instance: Base) => Node; }; export interface WithMutationInterface extends BaseInterface { mutated?(props: MutationServiceProps): void; } /** * Add a mutation observer to a component. * @link https://js-toolkit.studiometa.dev/api/decorators/withMutation.html */ export declare function withMutation(BaseClass: typeof Base, { target, ...options }?: MutationDecoratorOptions): BaseDecorator;