import type { DatabaseSync } from 'node:sqlite'; export type DesktopExecutionRow = { device_id: string; revision: number; grant_id: string; approval_id: string; grant_json: string; active: number; }; export declare function desktopExecutionRow(db: DatabaseSync, deviceId: string): DesktopExecutionRow | undefined; export declare function recordDesktopExecutionEvent(db: DatabaseSync, row: DesktopExecutionRow, action: 'granted' | 'revoked', now: number): void; /** Called inside the existing device-scope transaction; never restores a revoked grant. */ export declare function revokeDesktopExecutionRow(db: DatabaseSync, deviceId: string, now?: number): void;