import { type ConnectorIdentity } from "@openremotecode/protocol"; import type { ConnectorAuthorization, ConnectorAuthorizationStore } from "./auth/authorization-store.js"; import type { ConnectorPairingStore } from "./auth/pairing-store.js"; import { type RemoteAPIClient } from "./remote-api-client.js"; interface PairingDisplay { showPairing(userCode: string, verificationURI: string, expiresAt: string): Promise; /** * Shows the safety code and asks the person at this machine to approve the device that * claimed the pairing. Resolves true only on an explicit approval; anything else rejects. */ approveDevice(code: string, expiresAt: string): Promise; } /** Thrown when the person at OpenCode declines the device, so the supervisor can say so. */ export declare class PairingRejectedError extends Error { constructor(); } export declare class PairingClient { private readonly api; private readonly identity; private readonly store; private readonly pairingStore; private readonly display; constructor(api: RemoteAPIClient, identity: ConnectorIdentity, store: ConnectorAuthorizationStore, pairingStore: ConnectorPairingStore, display: PairingDisplay); pair(signal: AbortSignal): Promise; } export {}; //# sourceMappingURL=pairing-client.d.ts.map