import type { Hex } from "viem"; import type { Credentials, Method } from "../signer/signer.js"; import type { ConnectedWalletClient } from "../wallet/wallet.js"; /** * L1 header payload for wallet-based authentication */ export type L1HeaderPayload = { POLY_ADDRESS: string; POLY_SIGNATURE: Hex; POLY_TIMESTAMP: string; POLY_NONCE: string; }; /** * Creates L1 authentication headers using wallet signature (EIP-712) * Used for creating/deriving API keys * * @param signer - Account to sign with * @param nonce - Nonce for the signature (optional, defaults to random) * @param timestamp - Timestamp for the signature (optional, uses server time if provided) * @returns L1 header payload */ export declare function createL1Headers({ signer, nonce, timestamp }: { signer: ConnectedWalletClient; nonce?: bigint; timestamp?: number; }): Promise; /** * L2 header payload for API key-based authentication */ export type L2HeaderPayload = { POLY_ADDRESS: string; POLY_SIGNATURE: string; POLY_TIMESTAMP: string; POLY_API_KEY: string; POLY_PASSPHRASE: string; }; /** * Arguments for creating L2 headers */ export type L2HeaderArgs = { method: Method; requestPath: string; body?: string; }; /** * Creates L2 authentication headers using HMAC signature * Used for all authenticated API requests after obtaining API keys * * @param credentials - API credentials (key, secret, passphrase) * @param headerArgs - Request details for signature generation * @param timestamp - Optional timestamp (uses server time if provided) * @returns L2 header payload */ export declare function createL2Headers({ address, credentials, headerArgs, timestamp }: { address: string; credentials: Credentials; headerArgs: L2HeaderArgs; timestamp?: number; }): L2HeaderPayload; //# sourceMappingURL=headers.d.ts.map