import { TelnyxRTC, INotification } from '@telnyx/webrtc'; interface IProps { onReady?: (client?: TelnyxRTC) => any; onError?: (e?: any) => any; onSocketError?: (e?: any) => any; onSocketClose?: (e?: any) => any; onNotification?: (e: INotification) => any; } /** * Specify callbacks for Telnyx client event handlers * * ## Examples * ```jsx * import { useCallbacks } from '@telnyx/react-client'; * * function Phone() { * useCallbacks({ * onReady: () => console.log('client ready'), * onError: () => console.log('client registration error'), * onNotification: (x) => console.log('received notification:', x), * }); * * // ... * } * ``` */ declare function useCallbacks(props?: IProps): null; export default useCallbacks;