/** The `declare_delegation` record (senpi#5632): its principal and granted classes, parsed at the boundary. */
import type { RpcMethodClass } from "./method-classes.ts";
export interface Principal {
    readonly deviceId: string;
    readonly deviceName?: string;
    readonly conn?: string;
    /** The forwarder states this device is the host's own account (senpi#6342); fixed for the record's life. */
    readonly sameAccount?: true;
}
export interface Declaration {
    readonly principal: Principal;
    readonly granted: ReadonlySet<RpcMethodClass>;
    /** Present: host mode (`delegation_roles_v1`), the role ceiling the forwarder allows. Absent: legacy mode. */
    readonly roles?: ReadonlySet<string>;
}
export declare function parseDeclaration(record: object): Declaration | string;
export declare function samePrincipal(a: Principal, b: Principal): boolean;
//# sourceMappingURL=delegation-declaration.d.ts.map