///
import { GardenaLocation } from './GardenaLocation.js';
import { GardenaDevice } from './GardenaDevice.js';
export type GardenaConnectionConfig = {
clientId: string;
clientSecret: string;
};
export declare class GardenaApiError extends Error {
}
export declare enum ApiOutput {
Json = "json",
Text = "txt"
}
export declare class GardenaConnection {
private auth;
private locations;
constructor(config: GardenaConnectionConfig);
activateRealtimeUpdates(location?: GardenaLocation | string): Promise;
deactivateRealtimeUpdates(location?: GardenaLocation | string): Promise;
getLocations(): Promise;
getDevices(location?: GardenaLocation | string): Promise;
private selectLocation;
apiRequest(url: string | URL, headers?: any, method?: string, body?: any, expectedStatus?: number, expectedOutput?: ApiOutput): Promise;
}