import type { DeviceId, DeviceInfo, FirmwareUpdateContext } from "@ledgerhq/types-live";
import { Observable } from "rxjs";
import { SharedTaskEvent } from "./core";
export type GetLatestFirmwareTaskArgs = {
    deviceId: DeviceId;
    deviceName: string | null;
    deviceInfo: DeviceInfo;
};
export type GetLatestFirmwareTaskError = "FailedToRetrieveFirmwareUpdateInfo" | "FirmwareUpToDate";
export type GetLatestFirmwareTaskErrorEvent = {
    type: "taskError";
    error: GetLatestFirmwareTaskError;
};
export type GetLatestFirmwareTaskEvent = {
    type: "data";
    firmwareUpdateContext: FirmwareUpdateContext;
} | GetLatestFirmwareTaskErrorEvent | SharedTaskEvent;
export declare const getLatestFirmwareTask: (args: GetLatestFirmwareTaskArgs) => Observable<SharedTaskEvent | GetLatestFirmwareTaskErrorEvent | {
    type: "data";
    firmwareUpdateContext: FirmwareUpdateContext;
}>;
//# sourceMappingURL=getLatestFirmware.d.ts.map