/** * EIP-712 type definition for the **agent-signed binding consent** * (`contracts/docs/EIP712_DOMAIN_SPEC.md` §3.9; issue #1197). * * `AgentDelegationRegistry.registerAgent` / `rotateAgent` take this signature * from the agent key. Without it, anyone who saw a pending bind could bind the * same agent to themselves first, and AR-1 would burn the address for its * owner forever. * * **Single source of truth** for the signing side (`agent-module-executor`, * mode="consent"). The contract recomputes the digest on-chain * (`agentBindingConsentDigest`); the golden vectors in * `tests/vectors/agent-binding-consent.v1.json` pin both to the same bytes. * * Kept out of the `constants/index.ts` barrel for the same reason as * `btc-spend-request-types.ts`: only the action that signs it should change * bytes when it changes. * * ## Naming * * Owner-signed types are `*Request` and validator attestations keep their * §3.3 names; this is neither — the AGENT signs it, to accept a user. */ /** One EIP-712 struct member. Shape is compatible with both ethers v5 and v6. */ export interface AgentBindingConsentField { readonly name: string; readonly type: string; } export declare const AGENT_BINDING_CONSENT_PRIMARY_TYPE: "AgentBindingConsent"; /** * **Order is part of the digest.** `validUntil` is deliberately absent: it is * the user's choice, and a Safe ceremony may execute days after the agent was * minted. No nonce: AR-1 makes a consent single-use on-chain. */ export declare const AGENT_BINDING_CONSENT_FIELDS: readonly AgentBindingConsentField[]; /** Frozen `encodeType` string — must equal the contract's TYPEHASH preimage. */ export declare const AGENT_BINDING_CONSENT_ENCODE_TYPE = "AgentBindingConsent(address user,address agent)"; /** The `types` argument for `TypedDataEncoder.hash(domain, types, message)`. */ export declare function agentBindingConsentTypes(): Record; export interface AgentBindingConsentDomain { readonly name: string; readonly version: string; readonly chainId: number; readonly verifyingContract: string; } /** * The domain is the AgentDelegationRegistry PROXY on `chainId`. The caller * resolves `registry` through `resolveAgentPathAddresses` — pinned on * sepolia/ethereum — so this function only shapes it. */ export declare function buildAgentBindingConsentDomain(chainId: number, registry: string): AgentBindingConsentDomain; //# sourceMappingURL=agent-binding-consent-types.d.ts.map