import type { SysCallMapping } from "../../lib/plugos/system.ts"; import type { Client } from "../client.ts"; export function syncSyscalls(editor: Client): SysCallMapping { return { "sync.isSyncing": (): Promise => { return editor.syncService.isSyncing(); }, "sync.hasInitialSyncCompleted": (): Promise => { return editor.syncService.hasInitialSyncCompleted(); }, "sync.performFileSync": (_ctx, path: string): Promise => { return editor.syncService.performFileSync(path); }, "sync.performSpaceSync": (): Promise => { return editor.syncService.performSpaceSync(); }, }; }