@signalwire/core
Version:
Shared code for the SignalWire JS SDK
16 lines • 638 B
TypeScript
import { BaseSession } from '../../BaseSession';
import { ClientEvents, InternalUserOptions, SessionConstructor } from '../../utils/interfaces';
import { SessionChannel } from '../interfaces';
interface UseSessionOptions {
userOptions: InternalUserOptions;
SessionConstructor: SessionConstructor;
sessionChannel: SessionChannel;
}
export declare const useSession: (options: UseSessionOptions) => {
session: null;
initSession: () => BaseSession;
getSession: () => BaseSession | null;
sessionEmitter: import("eventemitter3").EventEmitter<ClientEvents, any>;
};
export {};
//# sourceMappingURL=useSession.d.ts.map