/** * * proxyInputs * * Dynamically adds getter and setter properties to the provided component (Cmp) for a list of inputs. When an input property is accessed or modified, the access or modification is deferred to the actual element (this.el[item]). * * The setter runs outside of Angular's change detection mechanism. This is useful to avoid performance hits due to unnecessary change detections. * * @param cmp * @param inputs */ export declare const proxyInputs: (Cmp: any, inputs: string[]) => void; /** * proxyMethods * * Dynamically adds methods to the provided component (Cmp) for a list of method names. When any of these methods is invoked, the invocation is deferred to the method of the actual element (this.el[methodName]). Again, the method execution runs outside of Angular's change detection. * * @param Cmp * @param methods */ export declare const proxyMethods: (Cmp: any, methods: string[]) => void; /** * proxyOutputs * * Sets the provided component's event properties to Observables that emit events from the actual element (el). It uses RxJS's fromEvent to create an Observable from DOM events. * * @param instance * @param el * @param events */ export declare const proxyOutputs: (instance: any, el: any, events: string[]) => void; /** * defineCustomElement * * This function defines a custom element (Web Component) if it's not already defined. It uses the Custom Elements API's define method. * * @param tagName * @param customElement */ export declare const defineCustomElement: (tagName: string, customElement: any) => void; /** * This is a decorator function. Decorators in TypeScript/Angular can be used to add metadata, properties, or behaviors to classes. The ProxyCmp decorator: * * Optionally defines a custom element. * Applies the proxyInputs and proxyMethods functions to the class. * Returns the modified class. * * @param opts * @returns */ export declare function ProxyCmp(opts: { defineCustomElementFn?: () => void; inputs?: any; methods?: any; }): (cls: any) => any; //# sourceMappingURL=utils.d.ts.map