function upload(content: Blob, options?: Omit<UploadOptions, "signal">): Effect.Effect<BlobRef, ViewError>; Uploads a file to the window's .NET host (blobs/1) and succeeds with the reference that a command's RunicUpload input takes. Interruption aborts the upload, and the host deletes what it received. Bridge failures become tagged errors: ViewUnavailable when the host takes no uploads, ViewRejected at the window's limits.
const ref = yield* upload(file, { onProgress: ({ loaded, total }) => report(loaded / total) });
yield* command(() => editor.attach(ref));