import { SysCallMapping } from "../../plugos/system.ts"; import type { Editor } from "../editor.tsx"; export function syncSyscalls(editor: Editor): SysCallMapping { return { "sync.isSyncing": (): Promise => { return editor.syncService.isSyncing(); }, "sync.hasInitialSyncCompleted": (): Promise => { return editor.syncService.hasInitialSyncCompleted(); }, }; }