import { TOAuth2Scope, TwitterApi } from "twitter-api-v2";
import { HttpRequest } from "../../http/HttpRequest";
import { OAuthProvider } from "./OAuthProvider";
type Config = {
    clientId: string;
    scope: TOAuth2Scope[];
    clientSecret: string;
    redirectPath: string;
};
export declare class XOAuthProvider extends OAuthProvider {
    config: Config;
    client: TwitterApi;
    private oauthStates;
    constructor(config?: Partial<Config>);
    getRedirectUrl(): string;
    onCallback(req: HttpRequest): Promise<{
        name: any;
        email: any;
        username: any;
        providerId: any;
    }>;
}
export {};
//# sourceMappingURL=XOAuthProvider.d.ts.map