homebridge-hilo
Version:
Plugin Homebridge (non officiel) pour la passerelle et les appareils Hilo de Hydro-Québec | Unofficial Homebridge plugin for Hydro-Québec Hilo bridge and devices
13 lines • 741 B
TypeScript
import axios from "axios";
import { TypedDocumentString } from "./graphql/graphql";
export declare const getAccessToken: () => string;
export declare const getWsAccessToken: () => string;
export declare function negotiate(): Promise<{
accessToken: string;
url: string;
}>;
export declare function setupAutoRefreshToken(expiresIn: number | undefined): Promise<void>;
export declare const hiloApi: axios.AxiosInstance;
export declare const graphqlApi: axios.AxiosInstance;
export declare function execute<TResult, TVariables>(query: TypedDocumentString<TResult, TVariables>, ...[variables]: TVariables extends Record<string, never> ? [] : [TVariables]): Promise<axios.AxiosResponse<any, any, {}>>;
//# sourceMappingURL=hiloApi.d.ts.map