// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.12.0.

// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field

// Static analysis wrongly picks the IO variant, thus ignore this
// ignore_for_file: argument_type_not_assignable

import 'api.dart';
import 'dart:async';
import 'dart:convert';
import 'frb_generated.dart';
import 'lib.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_web.dart';

abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
  RustLibApiImplPlatform({
    required super.handler,
    required super.wire,
    required super.generalizedFrbRustBinding,
    required super.portManager,
  });

  @protected
  AnyhowException dco_decode_AnyhowException(dynamic raw);

  @protected
  RustStreamSink<BridgeEvent> dco_decode_StreamSink_bridge_event_Sse(
    dynamic raw,
  );

  @protected
  String dco_decode_String(dynamic raw);

  @protected
  bool dco_decode_bool(dynamic raw);

  @protected
  BridgeBookmark dco_decode_box_autoadd_bridge_bookmark(dynamic raw);

  @protected
  BridgeAudioStats dco_decode_bridge_audio_stats(dynamic raw);

  @protected
  BridgeBookmark dco_decode_bridge_bookmark(dynamic raw);

  @protected
  BridgeChannel dco_decode_bridge_channel(dynamic raw);

  @protected
  BridgeClient dco_decode_bridge_client(dynamic raw);

  @protected
  BridgeError dco_decode_bridge_error(dynamic raw);

  @protected
  BridgeEvent dco_decode_bridge_event(dynamic raw);

  @protected
  BridgeNetworkState dco_decode_bridge_network_state(dynamic raw);

  @protected
  BridgePttInputClass dco_decode_bridge_ptt_input_class(dynamic raw);

  @protected
  BridgeSnapshot dco_decode_bridge_snapshot(dynamic raw);

  @protected
  double dco_decode_f_32(dynamic raw);

  @protected
  int dco_decode_i_32(dynamic raw);

  @protected
  PlatformInt64 dco_decode_i_64(dynamic raw);

  @protected
  List<BridgeBookmark> dco_decode_list_bridge_bookmark(dynamic raw);

  @protected
  List<BridgeChannel> dco_decode_list_bridge_channel(dynamic raw);

  @protected
  List<BridgeClient> dco_decode_list_bridge_client(dynamic raw);

  @protected
  Uint8List dco_decode_list_prim_u_8_strict(dynamic raw);

  @protected
  (String, String, String) dco_decode_record_string_string_string(dynamic raw);

  @protected
  int dco_decode_u_32(dynamic raw);

  @protected
  BigInt dco_decode_u_64(dynamic raw);

  @protected
  int dco_decode_u_8(dynamic raw);

  @protected
  void dco_decode_unit(dynamic raw);

  @protected
  AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);

  @protected
  RustStreamSink<BridgeEvent> sse_decode_StreamSink_bridge_event_Sse(
    SseDeserializer deserializer,
  );

  @protected
  String sse_decode_String(SseDeserializer deserializer);

  @protected
  bool sse_decode_bool(SseDeserializer deserializer);

  @protected
  BridgeBookmark sse_decode_box_autoadd_bridge_bookmark(
    SseDeserializer deserializer,
  );

  @protected
  BridgeAudioStats sse_decode_bridge_audio_stats(SseDeserializer deserializer);

  @protected
  BridgeBookmark sse_decode_bridge_bookmark(SseDeserializer deserializer);

  @protected
  BridgeChannel sse_decode_bridge_channel(SseDeserializer deserializer);

  @protected
  BridgeClient sse_decode_bridge_client(SseDeserializer deserializer);

  @protected
  BridgeError sse_decode_bridge_error(SseDeserializer deserializer);

  @protected
  BridgeEvent sse_decode_bridge_event(SseDeserializer deserializer);

  @protected
  BridgeNetworkState sse_decode_bridge_network_state(
    SseDeserializer deserializer,
  );

  @protected
  BridgePttInputClass sse_decode_bridge_ptt_input_class(
    SseDeserializer deserializer,
  );

  @protected
  BridgeSnapshot sse_decode_bridge_snapshot(SseDeserializer deserializer);

  @protected
  double sse_decode_f_32(SseDeserializer deserializer);

  @protected
  int sse_decode_i_32(SseDeserializer deserializer);

  @protected
  PlatformInt64 sse_decode_i_64(SseDeserializer deserializer);

  @protected
  List<BridgeBookmark> sse_decode_list_bridge_bookmark(
    SseDeserializer deserializer,
  );

  @protected
  List<BridgeChannel> sse_decode_list_bridge_channel(
    SseDeserializer deserializer,
  );

  @protected
  List<BridgeClient> sse_decode_list_bridge_client(
    SseDeserializer deserializer,
  );

  @protected
  Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer);

  @protected
  (String, String, String) sse_decode_record_string_string_string(
    SseDeserializer deserializer,
  );

  @protected
  int sse_decode_u_32(SseDeserializer deserializer);

  @protected
  BigInt sse_decode_u_64(SseDeserializer deserializer);

  @protected
  int sse_decode_u_8(SseDeserializer deserializer);

  @protected
  void sse_decode_unit(SseDeserializer deserializer);

  @protected
  void sse_encode_AnyhowException(
    AnyhowException self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_StreamSink_bridge_event_Sse(
    RustStreamSink<BridgeEvent> self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_String(String self, SseSerializer serializer);

  @protected
  void sse_encode_bool(bool self, SseSerializer serializer);

  @protected
  void sse_encode_box_autoadd_bridge_bookmark(
    BridgeBookmark self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_bridge_audio_stats(
    BridgeAudioStats self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_bridge_bookmark(
    BridgeBookmark self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_bridge_channel(BridgeChannel self, SseSerializer serializer);

  @protected
  void sse_encode_bridge_client(BridgeClient self, SseSerializer serializer);

  @protected
  void sse_encode_bridge_error(BridgeError self, SseSerializer serializer);

  @protected
  void sse_encode_bridge_event(BridgeEvent self, SseSerializer serializer);

  @protected
  void sse_encode_bridge_network_state(
    BridgeNetworkState self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_bridge_ptt_input_class(
    BridgePttInputClass self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_bridge_snapshot(
    BridgeSnapshot self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_f_32(double self, SseSerializer serializer);

  @protected
  void sse_encode_i_32(int self, SseSerializer serializer);

  @protected
  void sse_encode_i_64(PlatformInt64 self, SseSerializer serializer);

  @protected
  void sse_encode_list_bridge_bookmark(
    List<BridgeBookmark> self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_list_bridge_channel(
    List<BridgeChannel> self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_list_bridge_client(
    List<BridgeClient> self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_list_prim_u_8_strict(
    Uint8List self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_record_string_string_string(
    (String, String, String) self,
    SseSerializer serializer,
  );

  @protected
  void sse_encode_u_32(int self, SseSerializer serializer);

  @protected
  void sse_encode_u_64(BigInt self, SseSerializer serializer);

  @protected
  void sse_encode_u_8(int self, SseSerializer serializer);

  @protected
  void sse_encode_unit(void self, SseSerializer serializer);
}

// Section: wire_class

class RustLibWire implements BaseWire {
  RustLibWire.fromExternalLibrary(ExternalLibrary lib);
}

@JS('wasm_bindgen')
external RustLibWasmModule get wasmModule;

@JS()
@anonymous
extension type RustLibWasmModule._(JSObject _) implements JSObject {}
