import { type EvmAddress } from "./evm.js"; export type CliJwtClaims = { sub: string; sid: string; agentKey: string; scope: string; }; export type CliJwtVerifiedClaims = CliJwtClaims & { iat: number; exp: number; iss: string; aud: string | string[]; }; export type CliJwtPayloadClaims = { sub: string; sid: string; agent_key: string; scope: string; }; export type CliAccessTokenClaims = CliJwtClaims; export type VerifiedCliAccessTokenClaims = CliJwtVerifiedClaims; export declare const DEFAULT_DEV_CLI_JWT_PUBLIC_KEY: string; export declare const DEFAULT_CLI_JWT_ISSUER = "cobuild-chat-api"; export declare const DEFAULT_CLI_JWT_AUDIENCE = "cli"; export type CliScopeCapabilities = { hasToolsWrite: boolean; hasWalletExecute: boolean; hasAnyWriteScope: boolean; }; export type CliVerifiedPrincipal = { sessionId: string; ownerAddress: EvmAddress; agentKey: string; scope: string; scopes: string[]; hasToolsRead: boolean; hasToolsWrite: boolean; hasWalletExecute: boolean; hasAnyWriteScope: boolean; }; export declare function toCliJwtPayloadClaims(claims: CliJwtClaims): CliJwtPayloadClaims; export declare function parseCliJwtClaims(payload: unknown): CliJwtClaims | null; export declare const parseCliAccessTokenClaims: typeof parseCliJwtClaims; export declare function deriveCliScopeCapabilities(scope: string): CliScopeCapabilities; export declare function parseCliJwtVerifiedClaims(payload: unknown): CliJwtVerifiedClaims | null; export declare const parseVerifiedCliAccessTokenClaims: typeof parseCliJwtVerifiedClaims; export declare function deriveCliVerifiedPrincipal(claims: CliJwtVerifiedClaims): CliVerifiedPrincipal | null;