/** Whether a metadata id uses Claude Code's legacy cloaking shape. */ export declare function isClaudeCloakingUserId(userId: string): boolean; /** Extract a stable session id from a supported Anthropic metadata user id. */ export declare function extractClaudeMetadataSessionId(userId: unknown): string | undefined; /** Generate a legacy Claude Code cloaking metadata id. */ export declare function generateClaudeCloakingUserId(): string; /** Derive the stable Claude device id for an installation and optional account. */ export declare function deriveClaudeDeviceId(installId: string, accountId?: string): string; /** Read a non-empty string from provider metadata. */ export declare function readAnthropicMetadataString(metadata: Record | undefined, key: string): string | undefined; /** Resolve the account id aliases accepted in Anthropic request metadata. */ export declare function readAnthropicMetadataAccountId(metadata: Record | undefined): string | undefined; /** Resolve the provider-facing metadata user id for API-key or OAuth requests. */ export declare function resolveAnthropicMetadataUserId(userId: unknown, isOAuthToken: boolean, sessionId?: string, accountId?: string): string | undefined; /** Apply Claude Code's wire-only tool prefix. */ export declare const applyClaudeToolPrefix: (name: string) => string; /** Remove one Claude Code wire-only tool prefix. */ export declare const stripClaudeToolPrefix: (name: string) => string;