import * as i0 from "@angular/core"; export declare class DmCmpsRunOncePipeService { private cache; private argsMap; generateFunctionKey(func: (...args: any[]) => any, ...args: any[]): string; getOrCache(key: string, fn: () => any, args: any[]): any; private clearCache; /** * * @param func - the function that called with the pipe `runOnce` * * @result when you need to trigger the function again, just call `triggerFunction` with the function * * @usageExample * * #### html * ```html * *
* * * * ``` * * you can define properties as you need * * #### typescript * ```typescript * export class YourComponent { * constructor(private runOncePipeService: DmCmpsRunOncePipeService) {} * * myFucntion(prop?: any) { * let result: any; * // any logic here * return result; * } * * //this will trigger the function every time its called * triggerFunction() { * this.runOncePipeService.triggerFunction(this.myFucntion) * } * } * ``` */ triggerFunction(func: (...args: any[]) => any): void; static ɵfac: i0.ɵɵFactoryDeclaration