UNPKG

@noves/intent-typescript-sdk

Version:

Noves Intent Typescript SDK

21 lines (20 loc) 658 B
import * as grpc from '@grpc/grpc-js'; interface GenericIntentRequest { id: string; params: Record<string, string>; cusRateLimit: number; } interface GenericResponse { data: string; } interface IntentServiceClient extends grpc.Client { genericIntent(request: GenericIntentRequest): grpc.ClientReadableStream<GenericResponse>; } export declare class GrpcServerClient { private client; constructor(host: string); getClient(): IntentServiceClient; stringifyParams(params: Record<string, any>): Record<string, string>; genericIntent(request: GenericIntentRequest): grpc.ClientReadableStream<GenericResponse>; } export {};