import * as Responses from "./api-responses"; import { Headers, Response } from "node-fetch"; export declare enum HTTP_METHOD { GET = "GET", POST = "POST", PATCH = "PATCH" } export declare enum LOGIN_STATUS { OK = 0, INVALID = 1, SESSION_ERROR = 2, EXISTS = 3 } export declare enum CREDENTIAL_TYPE { PHONE = 0, VERIFY_CODE = 1 } export declare enum CREDENTIAL_STATUS { MISSING_SESSION = 0, INVALID = 1, VALID = 2 } export declare enum DEVICE_TOKEN_ACTION { NEW_TOKEN = 0, END_SESSION = 1 } export declare enum WEBSOCKET_STATUS { OK = 0, FAILED = 1 } export interface CLIENT_EVENTS { login_success?: Function; login_failure?: Function; logout?: Function; websocket_connect?: Function; websocket_authorized?: Function; } export declare class Client { private phone_number; private readonly poparazzi_ver; private readonly cfnetwork_ver; private readonly darwin_ver; private readonly request_headers; private readonly event_callbacks; private readonly generate_random_hex; private session; private device_token; private websocket; private stream_authorized; constructor(args: { phone_number?: string; language?: string; interactive_login?: boolean; }); static api_call(args: { endpoint: string; headers: Headers; path?: string; method?: HTTP_METHOD; payload?: object; }): Promise; create_session(): Promise; private send_device_token; generate_device_token(): Promise; end_session(): Promise; private submit_credential; submit_phone_number(number?: string): Promise; submit_verification_code(code: string): Promise; interactive_login_prompt(): Promise; connect_streaming_api(args?: { auth?: boolean; }): Promise; authenticate_stream(): Promise; send_pop_view_count(content_id: string, views: number): Promise; private stream_send; set_event(callbacks: CLIENT_EVENTS): void; private trigger_event; static sleep(milliseconds: number): Promise; get_phone_number(): string; set_phone_number(phone: string): void; get_request_headers(): Headers; get_session(): Responses.Session | null; get_device_token(): Responses.AppleDeviceToken | null; reset_device_token(): void; set_language(language: string): void; } //# sourceMappingURL=poparazzi.d.ts.map