import { OnDestroy, Signal } from "@angular/core"; import { AnyAbility } from "@casl/ability"; export declare class AbilityServiceSignal implements OnDestroy { private readonly _rules; private readonly _ability; private readonly _disposeAbilitySubscription; constructor(); ngOnDestroy(): void; private _getReactiveAbility; can: T['can']; cannot: T['cannot']; deferCan(...args: WithSignals>): Signal; deferCannot(...args: WithSignals>): Signal; whyCan: (...args: Parameters) => ResultWithReason | null; whyCannot: (...args: Parameters) => ResultWithReason | null; deferWhyCan(...args: WithSignals>): Signal; deferWhyCannot(...args: WithSignals>): Signal; update(rules: T['rules']): void; } export interface ResultWithReason { reason: string | undefined; } type WithSignals = { [K in keyof T]: T[K] | Signal; }; export {};