/** * device-lines.ts, the one rendering of a paired-device list. * * Every surface that lists devices (a /devices command family, a settings * device-management modal) renders each per-device token the same way * (name · created · last-seen · id), so no two of them drift. Pure over its * inputs and a `now` clock, so the formatting is testable without real time. */ import type { PublicPairingToken } from './pairing-token-store.js'; /** A short, human-quotable id prefix used to target rename/revoke. */ export declare function shortTokenId(id: string): string; /** Relative last-seen, or "never" when the device has not authenticated yet. */ export declare function formatLastSeen(ms: number | undefined, now?: number): string; /** Creation date as YYYY-MM-DD. */ export declare function formatCreated(ms: number): string; /** One device line: name · created · last-seen · short id. */ export declare function formatDeviceLine(token: PublicPairingToken, now?: number): string; /** Resolve a token by exact id or unambiguous id-prefix; returns a resolution result. */ export declare function resolveTokenByIdPrefix(tokens: readonly PublicPairingToken[], idOrPrefix: string): { readonly ok: true; readonly token: PublicPairingToken; } | { readonly ok: false; readonly reason: 'not-found' | 'ambiguous'; }; //# sourceMappingURL=device-lines.d.ts.map