mirror of
https://github.com/luxfi/lux-api.git
synced 2026-10-30 16:20:47 +00:00
20 lines
556 B
TypeScript
20 lines
556 B
TypeScript
import type { AxiosRequestConfig } from 'axios';
|
|
export declare type InitOptions = {
|
|
/**
|
|
* @deprecated legacy option, don't need to use it anymore
|
|
*/
|
|
webHf?: string;
|
|
};
|
|
export interface luxApiPlugin {
|
|
onInitiateAsync?: (options?: InitOptions) => Promise<void>;
|
|
onInitiate?: (options?: InitOptions) => Promise<void>;
|
|
onSignRequest: (ctx: {
|
|
axiosRequestConfig: AxiosRequestConfig<any>;
|
|
parsed: {
|
|
params: any;
|
|
method: string;
|
|
url: string;
|
|
};
|
|
}) => Promise<void>;
|
|
}
|