UNPKG

camstreamerlib

Version:

Helper library for CamStreamer ACAP applications.

16 lines (15 loc) 1.05 kB
import { TPlaylistPlayType } from '../types/CamSwitcherAPI'; import { IClient, Options, TParameters, TResponse } from './types'; export declare const addParametersToPath: (path: string, params?: TParameters) => string; export declare const paramToUrl: (params?: TParameters) => string; export declare const arrayToUrl: (arr: string | string[]) => string; export declare const isCamera: (id?: string) => boolean; export declare const isStream: (id?: string) => boolean; export declare const isClip: (id?: string) => boolean; export declare const isTracker: (id?: string) => boolean; export declare const isPlaylist: (id?: string) => boolean; export declare const isLoopPlayType: (playType: TPlaylistPlayType) => boolean; export declare function isClient(arg?: Options | IClient<TResponse>): arg is IClient<TResponse>; export declare function responseStringify(res: TResponse): Promise<string>; export declare function pad(num: number, size: number): string; export declare function isNullish<T>(value: T | undefined | null): value is undefined | null;