import { BaseCommand } from '../../base-command.js'; import { type AdminDevice } from '../../lib/contracts/index.js'; interface DeviceListItem extends AdminDevice { datapoints?: number | null; last_seen?: string | null; online: boolean; } export default class DevicesList extends BaseCommand { static description: string; static examples: string[]; static flags: { 'include-offline': import("@oclif/core/interfaces").BooleanFlag; days: import("@oclif/core/interfaces").OptionFlag; limit: import("@oclif/core/interfaces").OptionFlag; name: import("@oclif/core/interfaces").OptionFlag; 'with-data': import("@oclif/core/interfaces").BooleanFlag; tag: import("@oclif/core/interfaces").OptionFlag; }; static summary: string; run(): Promise<{ items: DeviceListItem[]; }>; /** * Query analytics SQL for per-device last seen and datapoint counts. */ private getLastSeenMap; /** * Try to get online device IDs from the presence service. * Returns undefined if the endpoint fails or is unavailable. */ private getOnlineDeviceIds; private getDevicesWithData; } export {};