/** Invocation-scoped authority supplied by a trusted host, never by flow JSON. */ export interface InvocationAuthority { principalId: string; allowedGrantIds: ReadonlySet; allowedProviderControllers: ReadonlySet; allowedCredentialIds: ReadonlySet; allowResolveOnly: boolean; allowUnsafeParallelWrites: boolean; allowWorkspaceStateRestore: boolean; } export interface InvocationAuthorityInput { principalId: string; allowedGrantIds?: Iterable; allowedProviderControllers?: Iterable; allowedCredentialIds?: Iterable; allowResolveOnly?: boolean; allowUnsafeParallelWrites?: boolean; allowWorkspaceStateRestore?: boolean; } /** The minimum grant view needed for two-sided principal authorization. */ export interface GrantAuthorizationView { grantId: string; allowedPrincipals: ReadonlySet; } export declare function readonlyStringSet(values: Iterable, field: string): ReadonlySet; /** * Host-side constructor that snapshots every allowlist. * * The returned sets expose no mutation methods, so changes to the host's input * sets cannot widen a live invocation after authorization begins. */ export declare function createHostInvocationAuthority(input: InvocationAuthorityInput): InvocationAuthority; /** Both the invocation allowlist and the grant's principal ACL must agree. */ export declare function hasGrantAuthority(authority: InvocationAuthority, grant: GrantAuthorizationView): boolean; //# sourceMappingURL=authority.d.ts.map