UNPKG

mythtv-services-api

Version:
16 lines (15 loc) 576 B
/// <reference types="node" /> import { Writable } from 'stream'; export declare class ServiceProvider { readonly baseUrl: URL; readonly api: string; constructor(baseUrl: URL, api: string); private getUri; get<T>(service: string, params?: any): Promise<T>; post<T>(service: string, params?: any, data?: any): Promise<T>; stream(service: string, writable: Writable, params?: any): Promise<void>; } export declare abstract class AbstractService { protected readonly serviceProvider: ServiceProvider; constructor(baseUrl: URL, api: string); }