import { Callback } from '../../typings/function-types'; export declare namespace RestClients { interface RestClientSettings { url: string; } enum RESTEndpoints { QUOTES = "quotes", CONVERT = "convert", MARKET_STATUS = "market_status", SYMBOLS = "symbols", QUOTA = "quota" } interface Quota { quota_used: number; quota_limit: number; quota_remaining: number; hours_until_reset: number; } class AxiosRestClients { private readonly baseUrl; constructor(baseUrl: string); getUser(userId: string, headers?: string[]): Promise; followUser(followId: string, headers?: string[]): Promise; unfollowUser(followId: string, headers?: string[]): Promise; deleteUser(authUserId: string, headers?: string[]): Promise; getAuthUser(authUserId: string, headers?: string[]): Promise; updateUser(authUserId: string, userData: string, headers?: string[]): Promise; getUserFeed(authUserId: string, headers?: string[]): Promise; addPost(authUserId: string, post: string, headers?: string[]): Promise; getPostFeed(authUserId: string, headers?: string[]): Promise; deletePost(postId: string, headers?: string[]): Promise; likePost(postId: string, headers?: string[]): Promise; unlikePost(postId: string, headers?: string[]): Promise; addComment(postId: string, comment: string, headers?: string[]): Promise; deleteComment(postId: string, comment: string, headers?: string[]): Promise; getPostsByUser(userId: string, headers?: string[]): Promise; } class RestClient { private readonly apiKey; private readonly settings?; private fetch; constructor(apiKey: string, settings?: RestClientSettings | undefined); getQuotes(symbols: string[] | string): Promise; getSymbols(): Promise; getMarketStatus(): Promise; getQuota(): Promise; convert(from: string, to: string, quantity: number): Promise; private get; } } export declare namespace WebSocketClients { enum IncomingEvents { MESSAGE = "message", FORCE_CLOSE = "force_close", HEART = "heart", LOGIN = "login", POST_LOGIN_SUCCESS = "post_login_success", UPDATE = "update" } enum OutgoingEvents { LOGIN = "login", SUBSCRIBE_TO = "subscribe_to", UNSUBSCRIBE_FROM = "unsubscribe_from", SUBSCRIBE_TO_ALL = "subscribe_to_all", UNSUBSCRIBE_FROM_ALL = "unsubscribe_from_all" } enum IOEvents { DISCONNECT = "close", CONNECTION = "open" } class SocketClient { private readonly apiKey; private socket; private onConnectionCallback?; private onMessageCallback?; private onUpdateCallback?; private onDisconnectCallback?; constructor(apiKey: string); onMessage(onMessage: Callback): this; onUpdate(onUpdate: Callback): this; onConnect(onConnect: Callback): this; onDisconnect(onDisconnect: Callback): this; subscribeTo(symbols: string[] | string): this; subscribeToAll(): this; unsubscribeFrom(symbols: string[] | string): this; unsubscribeFromAll(): this; private disconnect; connect(): void; initializeSocketClient(): void; private handleLoginRequest; private handleOpen; private handlePostLoginSuccess; private handleMessage; private handleUpdate; private handleHeart; private handleDisconnect; private emit; } } //# sourceMappingURL=clients.d.ts.map