import { AppFor, IApp, IAppConstructor, OptionsFor, Opts } from "./app"; import { MediaControls } from "./controls"; export declare class ChromecastDevice { friendlyName: string; private readonly castorDevice; constructor(friendlyName: string, timeout?: number); /** * Detect if the device exists, returning information about * the device if it does, or null if it doesn't. */ detect(): Promise<{ friendlyName: string; id: string; model: string; } | null>; /** * @param AppConstructor The constructor of an App * @param options Will be provided as the 2nd+ args to * `appConstructor`, and are App-specific. See the relevant * constructor for more information on what is accepted here. */ openApp>(AppConstructor: TConstructor, ...options: OptionsFor): Promise>; openControls(): Promise; /** * Close any active connection to this device */ close(): void; }