import { HubConnection } from "@microsoft/signalr";

import { Action } from "./signalr.provider";

export type SignalRContextType = {
	connection: HubConnection | null;
	connected: boolean;
	subscribe: (method: string, callback: Action) => void;
	unsubscribe: (method: string, callback: Action) => void;
};
