import type { DeviceId, Fingerprint } from '../../../../domain/device.js'; import type { Infrastructure } from '../../../../infrastructure/mod.js'; import { type Result } from '../../../../framework/types/result.js'; import { DeviceExpiredError, DeviceRegistrationError, DeviceDeregisteredError, EnsureDeviceClientError, EnsureDevicePlatformError } from './errors.js'; import type { EncryptedDeviceRegistration } from '../../../../domain/device-registration-manifest.js'; interface Options { infrastructure: Infrastructure; } export interface Dto { readonly device: Readonly<{ id: DeviceId; fingerprint: Fingerprint; }>; readonly license: { jwt: string; }; } export interface ErrorResponse { readonly type: string; readonly message: string; } type EnsureDeviceError = DeviceExpiredError | DeviceRegistrationError | DeviceDeregisteredError | EnsureDeviceClientError | EnsureDevicePlatformError; export declare function buildEnsureDevice(options: Options): (dto: Dto) => Promise>; export {}; //# sourceMappingURL=mod.d.ts.map