import { type Hex } from "viem"; import type { PrivateKeyAccount } from "viem/accounts"; export interface DerivedCreds { key: string; secret: string; passphrase: string; } interface L1Headers extends Record { POLY_ADDRESS: string; POLY_SIGNATURE: string; POLY_TIMESTAMP: string; POLY_NONCE: string; } /** * Build 7739-wrapped L1 headers binding the attestation to `depositWallet`, * signed by the local EOA account. Exported for the golden-vector unit test. */ export declare function buildWrapped1271Headers(account: PrivateKeyAccount, depositWallet: Hex, timestampSec?: number): Promise; /** * Create-or-derive CLOB L2 API creds. sigType 3 binds them to the deposit * wallet via the wrapped headers; sigType 0 binds them to the EOA. Mirrors the * SDK's createOrDeriveApiKey flow (POST /auth/api-key, falling back to * GET /auth/derive-api-key when the key already exists). */ export declare function deriveApiCreds(account: PrivateKeyAccount, opts: { sigType: 0 | 3; depositWallet?: Hex; }): Promise; export {};