import { Observable } from "rxjs";
import type { DeviceInfo } from "@ledgerhq/types-live";
import type { ListAppsResult } from "../../apps/types";
import type { Input as ConnectManagerInput, ConnectManagerEvent } from "../connectManager";
import type { Action, Device } from "./types";
import { DeviceId } from "@ledgerhq/client-ids/ids";
type State = {
    isLoading: boolean;
    requestQuitApp: boolean;
    unresponsive: boolean;
    allowManagerRequested: boolean;
    allowManagerGranted: boolean;
    device: Device | null | undefined;
    deviceInfo: DeviceInfo | null | undefined;
    deviceId: DeviceId | null | undefined;
    result: ListAppsResult | null | undefined;
    error: Error | null | undefined;
    isLocked: boolean;
};
export type ManagerState = State & {
    repairModalOpened: {
        auto: boolean;
    } | null | undefined;
    onRetry: () => void;
    onAutoRepair: () => void;
    onRepairModal: (arg0: boolean) => void;
    closeRepairModal: () => void;
};
export type ManagerRequest = {
    autoQuitAppDisabled?: boolean;
    cancelExecution?: boolean;
} | null | undefined;
export type Result = {
    device: Device;
    deviceInfo: DeviceInfo;
    result: ListAppsResult | null | undefined;
};
type ConnectManagerAction = Action<ManagerRequest, ManagerState, Result>;
export declare const createAction: (task: (arg0: ConnectManagerInput) => Observable<ConnectManagerEvent>) => ConnectManagerAction;
export {};
//# sourceMappingURL=manager.d.ts.map