/**
 * Generated by tsnapi — public API snapshot of `devframe/rpc/transports/ws-bun`
 */
// #region Interfaces
export interface AttachBunWsTransportOptions {
  allowedOrigins?: readonly string[] | WsOriginRegistry | false;
}
export interface BunWsTier {
  handleUpgrade: (_: Request, _: unknown) => Promise<Response | undefined>;
  websocket: BunWsTierWebSocket;
  close: () => Promise<void>;
}
export interface BunWsTierWebSocket {
  open?: (_: unknown) => unknown;
  message: (_: unknown, _: unknown) => unknown;
  close?: (_: unknown, _?: number, _?: string) => unknown;
  drain?: (_: unknown) => unknown;
}
// #endregion

// #region Functions
export declare function attachBunWsTransport(_: ContextRpcServer, _?: AttachBunWsTransportOptions): Promise<BunWsTier>;
// #endregion