/** Node-only wallet-owned org claim helpers (v1.82, first-class-orgs). */ import type { Run402 } from "../index.js"; import type { ClaimResult } from "../namespaces/operator.js"; export interface SignWalletOrgClaimOptions { apiBase?: string; allowancePath?: string; /** SIWX chain id; defaults to `eip155:84532`. Not pinned by the gateway (only the nonce is action-bound). */ chainId?: string; issuedAt?: string; expirationTime?: string; } /** * Build the `SIGN-IN-WITH-X` wallet proof for a wallet-org claim: a fresh CAIP-122 * SIWX message carrying the challenge `nonce`, signed by the local allowance. * The gateway binds the action/wallet/org/expiry server-side via the nonce, so * there is no canonical statement to match (simpler than `signCiDelegation`). */ export declare function signWalletOrgClaim(nonce: string, opts?: SignWalletOrgClaimOptions): string; export interface ClaimWalletOrgOptions { /** * The wallet (0x EVM address) whose agent-owned org to claim. Defaults to the * active allowance address — the proof is always signed by the active wallet, * so an override must match the active wallet (select it via `--wallet`). */ wallet?: string; /** Org id to claim — supply only on the second round, after a `select_org` result. */ orgId?: string; /** Optional label to set on the claimed org. `null`/`""` clears. */ displayName?: string | null; /** Override the control-plane session bearer (default: the local live session cache). */ token?: string; apiBase?: string; allowancePath?: string; controlPlaneSessionPath?: string; chainId?: string; } /** * Run the full wallet-org claim dance (Node): resolve the human's write-capable * control-plane session from the local cache, request a challenge, sign the * nonce with the active allowance, and submit both proofs. Returns the * discriminated {@link ClaimResult} — a `select_org` result is returned, not * thrown; re-invoke with `{ orgId }` to claim a specific org (this re-runs a * fresh challenge + signature, which is fine: the nonce is claim-scoped). * * Does NOT drive the WebAuthn step-up: a stale session surfaces * `StepUpRequiredError` for the caller (CLI) to handle. */ export declare function claimWalletOrg(r: Run402, opts?: ClaimWalletOrgOptions): Promise; //# sourceMappingURL=operator-claim.d.ts.map