import { Options as KyOptions } from 'ky'; import { HttpClient } from './__generated__/HttpClient'; import { DataSourceService } from './__generated__/DataSourceService'; import { QueryTokenAccessService } from './__generated__/QueryTokenAccessService'; import { CatalogService } from './__generated__/CatalogService'; import { EventEmitter } from './EventEmitter'; import { Account, AccountPreview, External, CatalogShare, ClientSettings, Eql, Feedback, FileUpload, Filters, Geocode, History, Layers, Names, PortalSettings, Projects, Quotas, RemoteTaskManager, Resources, Security, Statistic, Tables, Tools, VectorTiles } from './services'; import { AuthenticateParams, LoginDc } from './__generated__/data-contracts'; export type ApiParams = { url: string; http?: HttpClient; httpOptions?: KyOptions; urlPath?: string; }; export declare enum UrlPath { Base = "/map", Portal = "/portal" } export type SocAuthNetwork = "vk" | "facebook" | "google" | "yandex"; export declare class Api extends EventEmitter { readonly url: string; readonly layers: Layers; readonly tables: Tables; readonly projects: Projects; readonly security: Security; readonly file: FileUpload; readonly filters: Filters; readonly resources: Resources; readonly geocode: Geocode; readonly tools: Tools; readonly external: External; readonly account: Account; readonly accountPreview: AccountPreview; readonly clientSettings: ClientSettings; readonly portalSettings: PortalSettings; readonly names: Names; readonly statistic: Statistic; readonly feedback: Feedback; readonly vectorTiles: VectorTiles; readonly eql: Eql; readonly catalog: CatalogService; readonly queryToken: QueryTokenAccessService; readonly dataSource: DataSourceService; readonly remoteTaskManager: RemoteTaskManager; readonly catalogShare: CatalogShare; readonly history: History; readonly quotas: Quotas; protected readonly http: HttpClient; private readonly urlPath; private refreshingToken; constructor({ url, http, urlPath, httpOptions, }: ApiParams); init({ authParams, authQueryParams, fetchSettings, fetchUser, useJwt, }: { authParams?: LoginDc; authQueryParams?: AuthenticateParams; fetchSettings?: boolean; fetchUser?: boolean; useJwt?: boolean; }): Promise; isAcceptedNetwork(network: string): network is SocAuthNetwork; socAuthLogin(network: SocAuthNetwork): Promise; logout(): Promise; private defineUrlPath; }