import { AuthAgent } from '../auth-agent'; import { Exception } from '../exception'; export interface OAuth1Params { consumerKey: string; consumerSecret: string; signatureMethod: OAuth1SignatureMethod; tokenKey?: string; tokenSecret?: string; privateKey?: string; version?: string; realm?: string; callback?: string; verifier?: string; timestamp?: string; nonce?: string; includeBodyHash?: boolean; } export declare enum OAuth1SignatureMethod { HMAC_SHA1 = "HMAC-SHA1", HMAC_SHA256 = "HMAC-SHA256", RSA_SHA1 = "RSA-SHA1", PLAINTEXT = "PLAINTEXT" } export declare class OAuth1Agent extends AuthAgent { protected params: OAuth1Params; constructor(params: OAuth1Params); getHeader(options: any): Promise; invalidate(): void; } export declare class OAuth1Error extends Exception { }