/** * Cedar Policy Format Bridge for IBAC * * Converts between Cedar-style policy strings and IBAC tuples, * and between APS delegations and Cedar policy format. * No external dependencies. */ import type { Delegation } from '../types/passport.js'; import type { IBACTuple } from './ibac.js'; /** * Parse a Cedar-style policy string into IBAC tuples. * * Supported format: * permit(principal == "agent:agent-123", action == "tool:query_db", resource == "table:patients"); * permit(principal == "agent:agent-123", action == "tool:read", resource == "file:report.pdf") * when { max_rows < 100 }; */ export declare function cedarPolicyToTuples(cedarPolicy: string): IBACTuple[]; /** * Generate a Cedar-style policy string from an APS delegation. * Each scope in the delegation becomes a separate permit statement. */ export declare function delegationToCedarPolicy(delegation: Delegation): string; //# sourceMappingURL=ibac-cedar.d.ts.map