rbac-engine
Version:
Role-based access control engine with policy-based permissions
6 lines • 480 B
TypeScript
import { Policy } from "../models";
export declare const evaluateCondition: (condition: Record<string, string>, context: Record<string, any>) => boolean;
export declare const matches: (pattern: string | string[], value: string) => boolean;
export declare const isStatementActive: (statement: any) => boolean;
export declare const evaluate: (policies: Policy[], action: string, resource: string, context?: Record<string, string>) => boolean;
//# sourceMappingURL=evaluator.d.ts.map