import { AnyObject } from 'tn-typescript'; import { ExoConnection } from '../ExoConnection/ExoConnection'; import { ExoContext } from '../ExoContext/ExoContext'; type GuardProps = E & { conn: ExoConnection; ctx: ExoContext; }; export type ExoGuardFunc = (props: GuardProps) => boolean | void; export type ExoRoleGuardFunc = (props: GuardProps<{ role: ExoRole; }>) => boolean | void; export declare class ExoGuards { bunny(func: ExoGuardFunc): void; auth(func: ExoGuardFunc): void; role(func: ExoRoleGuardFunc): void; } export {};