/** * @slynova/fence * * @license MIT * @copyright Slynova - Romain Lanz */ import { TGate, TResource } from '../Contracts'; declare abstract class Gate { /** * Defines a new Gate. * * @param name Name of the gate * @param callback Callback */ static define(name: string, callback: TGate): void; /** * Defines a new Policy. * * @param resource Resource to create policy for * @param policy Policy assigned to the resource */ static policy(resource: TResource, policy: Function | object): void; /** * Returns the storage. * * @return Storage used */ private static $getStorage; } export { Gate };