/** * Claude Code stores its account snapshot in ~/.claude.json. The relevant * fields for request attestation are: * * - userID: 64-char hex; sent as metadata.user_id.device_id * - oauthAccount.*: organizationUuid, accountUuid, emailAddress, etc. * * We read the file lazily and cache the result. Attested requests require a * real Claude Code device ID, so a missing or malformed identity is reported * before the request is sent instead of fabricating a machine fingerprint. */ export type ClaudeIdentity = { userID: string; accountUuid?: string; organizationUuid?: string; emailAddress?: string; }; export declare class ClaudeIdentityError extends Error { constructor(path: string); } export declare function getClaudeIdentity(): ClaudeIdentity; /** * Reset the cache — primarily useful for tests and for users who change * their ~/.claude.json at runtime. */ export declare function resetClaudeIdentityCache(): void;