HostToGuest:
    | {
        files: Record<string, string>;
        mainFile: string;
        projectId: number;
        projectName: string;
        type: "texbrain:doc:open";
    }
    | { type: "texbrain:compile" }
    | { id: string; ok: true; type: "texbrain:fs:result"; value: FsResult }
    | { error: string; id: string; ok: false; type: "texbrain:fs:result" }
    | { id: string; type: "texbrain:pick:folder:ack" }
    | {
        id: string;
        name: string | null;
        ok: true;
        type: "texbrain:pick:folder:result";
    }
    | {
        error: string;
        id: string;
        ok: false;
        type: "texbrain:pick:folder:result";
    }
    | { colors: ThemeColors; mode: ThemeMode; type: "texbrain:theme" }