import { UniversalHttpClient } from '../http/client.js'; import { GenerateJWTRequest, GenerateJWTResponse } from '../types/jwt.js'; /** * API wrapper for JWT authentication operations * * Handles generation of JWTs for client-side authentication. * Note: "token" in this context refers to JWT (authentication), not ERC-20 tokens (assets). */ export declare class JWT { private httpClient; constructor(httpClient: UniversalHttpClient); /** * Generates a JWT for authentication using project credentials * * This endpoint does NOT use HMAC authentication - it directly validates * the clientId and clientSecret to generate a JWT. * * @param params JWT generation parameters * @returns JWT string and expiration timestamp * * @example * ```typescript * // Create an unauthenticated client * const client = new UniversalHttpClient('https://api.orda.network/v1'); * * // Generate a JWT * const jwtApi = new JWT(client); * const { token, expiresAt } = await jwtApi.generate({ * clientId: 'proj_xxx', * clientSecret: 'secret_yyy', * expiresIn: 3600, * permissions: ['quotes:read', 'transactions:read'] * }); * * // Use the JWT with SDK * const sdk = new OrdaSDK({ token }); * ``` */ generate(params: GenerateJWTRequest): Promise; } //# sourceMappingURL=JWT.d.ts.map