import SceInterface from "./SceInterface"; declare global { var SceSDK: ISceSDK; var _initializedSceSDK: boolean; var scelua: any; var sce: SceInterface; } export type UserInfo = { user_id: string; name: string; avata: string; }; type SceSDKOptions = { sce_developer_token?: string; project_id?: string; }; export type TopRankOptions = { key: string; limit?: number; without_name?: boolean; order_by?: string; }; export type RankData = { name?: string; user_id: string; value: number; }; export type UserRankOptions = { key: string; user_id?: string; order_by?: string; }; export type UserRankData = { user_id: string; value: number; rank: number; }; type ResponseResult = { result?: T; error?: Error; }; type Callback = { success?: (result: T) => void; fail?: (error: Error) => void; }; interface ISceSDK { init_for_dev: (options: SceSDKOptions) => void; get_user_info: { (callback: Callback): void; (): Promise>; }; cloud: { set_data: { (key: string, value: Object, callback: Callback): void; (key: string, value: Object): Promise>; }; get_data: { (key: string, callback: Callback): void; (key: string): Promise>; }; set_number: { (key: string, value: number, callback: Callback): void; (key: string, value: number): Promise>; }; get_number: { (key: string, callback: Callback): void; (key: string): Promise>; }; get_top_rank: { (options: TopRankOptions, callback: Callback): void; (options: TopRankOptions): Promise>; }; get_user_rank: { (options: UserRankOptions, callback: Callback): void; (options: UserRankOptions): Promise>; }; }; } export {};