export interface Encoder {
  encode(data: ImageData): Promise<ArrayBuffer | SharedArrayBuffer>;
}

export interface Decoder {
  decode(data: ArrayBuffer): Promise<ImageBitmap>;
}

export interface Encoder {
  encode(data: ImageData): Promise<ArrayBuffer>;
}

export interface Decoder {
  decode(data: ArrayBuffer): Promise<ImageBitmap>;
}

Remove `SharedArrayBuffer` as an option
Remove `SharedArrayBuffer` as an option
