export type CogKeepAwakeResult = { rslt?: string; [key: string]: unknown; }; export type CogKeepAwakeObserver = { notify: (eventType: string, eventEnum: unknown, eventName: string, eventData: unknown) => void; }; export type CogKeepAwakeCog = { id: string; raftStateInfo?: { power?: { usb?: string; }; } | null; getFriendlyName?: () => string | undefined; hasVerifiedConnection: () => boolean; sendRestMessage: (message: string) => Promise; subscribe: (observer: CogKeepAwakeObserver, topics: string[]) => void; unsubscribe: (observer: CogKeepAwakeObserver) => void; }; export type CogKeepAwakeRuntime = { now: () => number; getLastActivityAt: () => number; isVisible: () => boolean; isCurrentCog: (cog: CogKeepAwakeCog) => boolean; canPrompt: () => boolean; }; export type CogKeepAwakePromptDevice = { id: string; name: string; }; export type CogKeepAwakePrompt = { revision: number; devices: CogKeepAwakePromptDevice[]; deviceIds: string[]; deviceNames: string[]; expiresAt: number; }; export type CogKeepAwakeSnapshot = { prompt: CogKeepAwakePrompt | null; };