import { AutoUpdateDataView, VpnDevice, DirectoryItem, InstalledPackageData, ProgressLog, PackageNotification, SystemInfo, UserActionLog, VolumeData } from "./calls.js"; export interface SubscriptionsTypes { /** * Auto-updates data */ autoUpdateData: (autoUpdateData: AutoUpdateDataView) => void; /** * All VPN devices */ devices: (devices: VpnDevice[]) => void; /** * Directory updates */ directory: (directory: DirectoryItem[]) => void; /** * Installed packages updates */ packages: (packages: InstalledPackageData[]) => void; /** * Installation progress logs */ progressLog: (progressLog: ProgressLog) => void; /** * Push notification from the DAPPMANAGER */ pushNotification: (notification: PackageNotification) => void; /** * Triggers a reload on the ADMIN UI client * @param data.reason "New client version" */ reloadClient: (data: { reason: string; }) => void; /** * Registry updates */ registry: (registry: DirectoryItem[]) => void; /** * Relevant system params */ systemInfo: (systemInfo: SystemInfo) => void; /** * New user action log */ userActionLog: (userActionLog: UserActionLog) => void; /** * Volume data that's expensive to fetch, from docker system df -v */ volumes: (volumes: VolumeData[]) => void; } export type Subscriptions = { [K in keyof SubscriptionsTypes]: { /** * Emit event * * *Note*: Hover over previous property for info and types * ```js * subscriptions.packages.emit(...) * ^^^^^^^^ * ``` */ emit: SubscriptionsTypes[K]; /** * Subscribe to event * * *Note*: Hover over previous property for info and types * ```js * subscriptions.packages.emit(...) * ^^^^^^^^ * ``` */ on: (handler: SubscriptionsTypes[K]) => void; }; }; export declare const subscriptionsData: { [P in keyof Subscriptions]: object; }; export type SubscriptionsArguments = { [K in keyof SubscriptionsTypes]: Parameters; }; //# sourceMappingURL=subscriptions.d.ts.map