import { Method } from 'axios'; export declare class PD { private token; private debug; private _me; private _domain; private progressState; silent: boolean; static isOldBearerToken(token: string): boolean; static isNewBearerToken(token: string): boolean; static isBearerToken(token: string): boolean; static isLegacyToken(token: string): boolean; static isValidToken(token: string): boolean; static authHeaderForToken(token: string): string; constructor(token: string, debug?: boolean); private _request; request(req: PD.Request): Promise>; private requestWithIndex; me(): Promise; domain(): Promise; batchedRequest(requests: PD.Request[], p?: { batchSize?: number; callback?: PD.Callback; reportTotal?: boolean; }): Promise; private spinnerCallback; batchedRequestWithSpinner(requests: PD.Request[], p?: { batchSize?: number; activityDescription?: string; stopSpinnerWhenDone?: boolean; }): Promise; private static endpointIdentifier; fetch(endpoint: string, p?: { params?: object; headers?: object; method?: Method; data?: object; callback?: PD.Callback; fetchLimit?: number; }): Promise; fetchWithSpinner(endpoint: string, p?: { params?: object; headers?: object; method?: Method; data?: object; activityDescription?: string; stopSpinnerWhenDone?: boolean; fetchLimit?: number; }): Promise; private objectIDForName; private objectIDsForNames; businessServiceIDForName(name: string): Promise; businessServiceIDsForNames(names: string[], exact?: boolean): Promise; serviceIDForName(name: string): Promise; serviceIDsForNames(names: string[], exact?: boolean): Promise; scheduleIDForName(name: string): Promise; scheduleIDsForNames(names: string[]): Promise; epIDForName(name: string): Promise; epIDsForNames(names: string[]): Promise; userIDForEmail(email: string): Promise; userIDsForEmails(emails: string[], exact?: boolean): Promise; tagIDForName(name: string): Promise; teamIDForName(name: string): Promise; teamIDsForNames(names: string[]): Promise; private getPrioritiesMapBy; getPrioritiesMapByName(): Promise; getPrioritiesMapByID(): Promise; } export declare namespace PD { interface Request { endpoint: string; method?: Method; params?: object; data?: object; headers?: object; } type Callback = (p: CallbackParams) => void; interface CallbackParams { start?: boolean; waiting?: boolean; success?: boolean; failure?: boolean; failureMessage?: string; total?: number; done?: boolean; } class BatchResult { requests: PD.Request[]; results: PD.Result[]; isSuccess: boolean; constructor(requests: PD.Request[], results: PD.Result[]); getValues(): any[]; getDatas(): any[]; getFailedIndices(): number[]; getSucceededIndices(): number[]; } class Error { errorObj: any; constructor(errorObj: any); get isDocumentedErrorType(): boolean; get formattedError(): string; } class Result { isSuccess: boolean; isFailure: boolean; private value; private constructor(); static ok(value: U): PD.Result; static fail(error: U): PD.Result; getData(): T | null; getValue(): T | null; getError(): T | null; getFormattedError(): string; statusCode(): number; } }