import { BrowserWindow } from "electron";
export declare type OAuth1Config = {
    oauth_consumer_key: string;
    oauth_consumer_secret?: string;
    oauth_callback: string;
};
export declare type OAuth1URLs = {
    request_token_url: string;
    authenticate_url: string;
    access_token_url: string;
};
declare type OAuth1Parameters = {
    oauth_token?: string;
    oauth_verifier?: string;
} & OAuth1OptionalParameter;
export declare type OAuth1Credential = {
    oauth_token: string;
    oauth_token_secret: string;
};
export declare type OAuth1OptionalParameter = {
    oauth_timestamp?: number;
    oauth_version?: string;
    oauth_nonce?: string;
    oauth_signature_method?: string;
};
export declare const requestOAuthToken: (url: string, config: OAuth1Config) => Promise<string>;
export declare const redirectAuthPage: <R extends Required<Pick<OAuth1Parameters, "oauth_token" | "oauth_verifier">>>(url: string, config: OAuth1Config, oauth_token: string, window: BrowserWindow) => Promise<R>;
export declare const requestAccessToken: (url: string, config: OAuth1Config, oauth_token: string, oauth_verifier: string) => Promise<OAuth1Credential>;
export {};
//# sourceMappingURL=helper.d.ts.map