UNPKG

@fishjam-cloud/react-client

Version:
14 lines 655 B
import { type FishjamClient } from "@fishjam-cloud/ts-client"; import type { CustomSourceState } from "../../types/internal"; import type { PeerStatus } from "../../types/public"; type CustomSourceManagerProps = { fishjamClient: FishjamClient; peerStatus: PeerStatus; }; export type CustomSourceManager = { setStream: (sourceId: string, stream: MediaStream | null) => Promise<void>; getSource: (sourceId: string) => CustomSourceState | undefined; }; export declare function useCustomSourceManager({ fishjamClient, peerStatus }: CustomSourceManagerProps): CustomSourceManager; export {}; //# sourceMappingURL=useCustomSourceManager.d.ts.map