import type { Services } from '../../../services/mod.js'; import type { EnsureDevicePlatformError, EnsureDeviceClientError, DeviceExpiredError, DeviceDeregisteredError } from '../../../services/platform/licensing/ensure-device/errors.js'; import type { DecodeDeviceRegistrationManifestError, DeviceRegistrationManifest, EncodeDeviceRegistrationManifestError } from '../../../domain/device-registration-manifest.js'; import { DeviceRegistrationError } from '../../../services/platform/licensing/ensure-device/errors.js'; import type { GatherDeviceInformationError } from '../../../services/device/gather.js'; interface Options { deps: { services: Services; }; } export interface EnsureDeviceDto { manifest: DeviceRegistrationManifest; } export declare function buildEnsure(options: Options): (dto: EnsureDeviceDto) => Promise<{ error: GatherDeviceInformationError; value?: never; } | { error: EncodeDeviceRegistrationManifestError; value?: never; } | { error?: never; value: DeviceRegistrationManifest; } | { error: DeviceRegistrationError | DeviceExpiredError | DeviceDeregisteredError | EnsureDeviceClientError | EnsureDevicePlatformError; value?: never; }>; export type EnsureDeviceError = EnsureDevicePlatformError | EnsureDeviceClientError | DeviceExpiredError | DeviceDeregisteredError | DeviceRegistrationError | GatherDeviceInformationError | DecodeDeviceRegistrationManifestError | EncodeDeviceRegistrationManifestError; export {}; //# sourceMappingURL=ensure.d.ts.map