import type { HttpContext } from "./http.js"; export interface MemberRow { readonly member: string; readonly issuer: string; readonly grant_id: string; readonly scopes: ReadonlyArray; readonly expires_at: number; readonly status: "active" | "expired" | "revoked"; } export interface MemberRevocation { readonly member: string; readonly grant_id: string; readonly newly_revoked: boolean; readonly credentials_revoked: ReadonlyArray; readonly sub_grants_invalidated: number; readonly scope: "local"; } export interface AdoptOptions { readonly label: string; readonly saId?: string; readonly ttlSeconds?: number; } export interface AdoptResult { readonly member: string; readonly master_did?: string; readonly grant_id?: string; readonly mode?: "self" | "custodial"; readonly adopted: boolean; readonly already_principal?: boolean; readonly reparented_sa?: string; } export interface AgentGrantOptions { readonly member: string; readonly aud: string; readonly scopes?: ReadonlyArray; readonly caveats?: { readonly max_depth?: number; readonly max_fanout?: number; readonly budget?: number; }; readonly ttlSeconds?: number; } export interface AgentGrantResult { readonly grant_id: string; readonly iss: string; readonly aud: string; readonly scopes: ReadonlyArray; readonly expires_at: number; readonly sa_id: string; readonly bearer: string; readonly bearer_expires_at: string; } export declare class ClientMembers { private readonly ctx; constructor(ctx: HttpContext); list(): Promise; adopt(opts: AdoptOptions): Promise; revoke(label: string, opts?: { note?: string; }): Promise; mintAgentGrant(opts: AgentGrantOptions): Promise; revokeAgentGrant(member: string, grantId: string): Promise | null>; }