import { Policy } from "../types"; /** * Interface for policy data access * Implement this to integrate with your database */ export interface IPolicyRepository { /** * Get a policy by ID */ getPolicy(policyId: string): Promise; /** * Get all policies */ getAllPolicies(): Promise; /** * Get policies that apply to a resource/action */ getPoliciesForResource(resource: string, action: string): Promise; /** * Add or update a policy */ savePolicy(policy: Policy): Promise; /** * Delete a policy */ deletePolicy(policyId: string): Promise; } //# sourceMappingURL=IPolicyRepository.d.ts.map