export declare class Pizzly { serverUrl: string; secretKey: string; constructor(serverUrl?: string, secretKey?: string); /** * Get fresh access credentials to authenticate your requests. * * @remarks * For OAuth 2: returns the access token directly as a string. * For OAuth 1: returns an object with 'oAuthToken' and 'oAuthTokenSecret' fields. */ accessToken(providerConfigKey: string, connectionId: string): Promise; /** * Get the full (fresh) credentials payload returned by the external API, which also contains access credentials. */ rawTokenResponse(providerConfigKey: string, connectionId: string): Promise; /** * Get the Connection object, which also contains access credentials and full credentials payload returned by the external API. */ connection(providerConfigKey: string, connectionId: string): Promise; private getConnection; private enrichHeaders; }