UNPKG

@activadee/n8n-nodes-gradio-client

Version:
11 lines (10 loc) 664 B
import { IExecuteFunctions, IDataObject } from 'n8n-workflow'; export declare class GradioClient { static executeWithRetry<T>(operation: () => Promise<T>, maxRetries?: number, baseDelay?: number): Promise<T>; static validateApiEndpoint(executeFunctions: IExecuteFunctions, spaceUrl: string, apiName: string, headers: IDataObject): Promise<{ isValid: boolean; error?: string; }>; static predict(executeFunctions: IExecuteFunctions, spaceUrl: string, apiName: string, inputParameters: any[], headers: IDataObject, timeout?: number, retryAttempts?: number): Promise<any>; static parseServerSentEvents(responseBody: string): any; }