UNPKG

@marxlnfcs/wildduck-api

Version:

Provides a client to interact with the wildduck api

15 lines (14 loc) 631 B
import { IWildduckClientOptions } from "../interfaces/client-options.interface"; import { HttpClient } from "./create-http-client"; import { SSESource } from "../interfaces/sse.interface"; export declare function createSSEClient(options: IWildduckClientOptions, httpClient?: HttpClient): SSEClient; export type SSEPathParams = { [key: string]: string | number | boolean | null | undefined; }; export declare class SSEClient { private options; private http; constructor(options: IWildduckClientOptions, http?: HttpClient); create(path?: string, params?: SSEPathParams | null): SSESource; private getProxy; }