import type { ActorIdentity } from './types.js'; /** A delivery/ownership target. Identity is always scoped to a workspace. */ export type ActorRef = Readonly<{ kind: 'human' | 'agent'; id: string; }>; export interface AddressableActor extends ActorRef { handle: string; displayName: string; status: 'active' | 'inactive'; } /** Verified adapter authority, never accepted from a request or tool argument. */ export interface RecordAuthority { mode: 'local-owner' | 'local-member' | 'hosted'; workspaceAdministrator: boolean; organizationAdministrator: boolean; operatedAgentIds: ReadonlySet; } export declare function sameActor(a: Pick, b: Pick): boolean; export declare function actorKey(actor: Pick): string; export declare function resolveAuthority(authority?: RecordAuthority): RecordAuthority; export declare function isRecordAdministrator(actor: ActorIdentity, authority: RecordAuthority): boolean; export declare function overseesAgent(actor: ActorIdentity, authority: RecordAuthority, id?: string): boolean; /** Explicit local filesystem-owner entry points supply this; human profiles do not. */ export declare function localOwnerAuthority(): RecordAuthority; /** SQL authority predicate; placeholder parameters are independent of the adapter. */ export declare function recordVisibilityPredicate(viewer: ActorIdentity, authority: RecordAuthority, kudosOnly?: boolean, prefix?: string): { sql: string; values: string[]; }; //# sourceMappingURL=policy.d.ts.map