import { Observable } from "rxjs";
import { DeviceInfo } from "@ledgerhq/types-live";
import type { ListAppsEvent } from "../apps";
import { AttemptToQuitAppEvent } from "./attemptToQuitApp";
import { LockedDeviceEvent } from "./actions/types";
import { ManagerRequest } from "./actions/manager";
export type Input = {
    deviceId: string;
    deviceName: string | null;
    request: ManagerRequest | null | undefined;
};
export type ConnectManagerEvent = AttemptToQuitAppEvent | {
    type: "osu";
    deviceInfo: DeviceInfo;
} | {
    type: "bootloader";
    deviceInfo: DeviceInfo;
} | {
    type: "listingApps";
    deviceInfo: DeviceInfo;
} | ListAppsEvent | LockedDeviceEvent;
export default function connectManagerFactory({ isLdmkConnectAppEnabled, }?: {
    isLdmkConnectAppEnabled: boolean;
}): ({ deviceId, deviceName, request }: Input) => Observable<ConnectManagerEvent>;
//# sourceMappingURL=connectManager.d.ts.map