@lnltch/unitalk-sdk 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ export interface RequestOptions {
2
+ method?: "GET" | "POST" | "PUT" | "DELETE";
3
+ data?: any;
4
+ headers?: HeadersInit;
5
+ }
6
+ export declare function useRequest(): {
7
+ request: (url: string, options?: RequestOptions) => Promise<any>;
8
+ setRequestServerUrl: (newServerUrl: string) => void;
9
+ setRequestToken: (newToken: string) => void;
10
+ };
@@ -22,6 +22,9 @@ export declare class UnitalkSDK {
22
22
  private waveHistory;
23
23
  private maxSaveCount;
24
24
  private cfg;
25
+ private request;
26
+ private setRequestServerUrl;
27
+ private setRequestToken;
25
28
  constructor(options: UnitalkSDKOptions);
26
29
  private log;
27
30
  /**