import type { Config as ProviderConfig, OAuth2Credentials, Connection } from '../models/index.js';
import type { Provider, ProviderOAuth2 } from '@nangohq/types';
import type { ModuleOptions, WreckHttpOptions } from 'simple-oauth2';
import type { ServiceResponse } from '../models/Generic.js';
import type { Merge } from 'type-fest';
export declare function getSimpleOAuth2ClientConfig(providerConfig: ProviderConfig, provider: Provider, connectionConfig: Record<string, string>): Merge<ModuleOptions, {
    http: WreckHttpOptions;
}>;
export declare function getFreshOAuth2Credentials(connection: Connection, config: ProviderConfig, provider: ProviderOAuth2): Promise<ServiceResponse<OAuth2Credentials>>;
