import { Observable } from 'rxjs'; import { RayconnectSdk } from './core/sdk'; import { Options, CallType, QueryType, ServerData } from './core/types'; declare class Rayconnect extends RayconnectSdk { private plugin; private nimkat; fn: any; static abi: boolean; constructor(ops?: Options, token?: any, config?: any); private ParseFn; /** * * @param string * @name Plugin * use plugin */ Plugin(param: string): this; /** * * @param CallType * @name Call * call query without response :) */ Call(param: CallType): Promise | undefined; /** * * @param CallType * @name Run * call query with response :) */ Run(param: CallType): Promise; account: { otp: { verify: (phone: any, token: any, TimeOutNumber?: number) => Promise; getCode: (phone: any, TimeOutNumber?: number) => Promise; }; signIn: (email: string, password: string) => Promise; signUp: (email: string, password: string, phone: string) => Promise; signOut: () => void; changePassword: () => void; changeUsername: () => void; resetPassword: () => void; destroy: () => void; change: () => void; }; store: { run: () => Promise; add: (type: string, attributes: object) => Promise; find: (type: string, id: string) => Promise; findByQuery: (type: string, query: any) => Promise; findAll: (type?: string) => Promise; remove: (type: string, id: string) => Promise; update: (type: string, id: string, attributes: object) => Promise; on: (event: string, callback: Function) => void; changeAccess: (type: string, action: string, userID: string) => Promise; hasAccess: (action: string) => boolean; }; Func(queryObj: QueryType): Observable; CloneCloudStorage(token: string, TimeOutNumber?: number): Promise; } export default Rayconnect;