import { HTTPError, OAuth2ClientCredentials, RequestClient } from '@segment/actions-core';
import { Settings } from './generated-types';
export declare class AmazonAdsError extends HTTPError {
    response: Response & {
        data: {
            status: string;
            message: string;
        };
    };
}
export interface AudiencePayload {
    name: string;
    description: string;
    countryCode: string;
    targetResource: {
        advertiserId: string;
    };
    metadata: {
        externalAudienceId: string;
        ttl?: number;
        audienceFees?: {
            cpmCents: number;
            currency: string;
        }[];
    };
}
export interface RecordsResponseType {
    jobRequestId: string;
}
export declare const AUTHORIZATION_URL: any;
export declare const CONSTANTS: {
    CREATE: string;
    DELETE: string;
};
export declare const CURRENCY: string[];
export declare const REGEX_AUDIENCEID: RegExp;
export declare const REGEX_ADVERTISERID: RegExp;
type AmazonAMCCredentials = {
    refresh_token: string;
    access_token: string;
    client_id: string;
    client_secret: string;
};
export declare function extractNumberAndSubstituteWithStringValue(responseString: string, regex: any, substituteWith: string): any;
type SettingsWithOauth = Settings & {
    oauth: AmazonAMCCredentials;
};
export declare const getAuthToken: (request: RequestClient, settings: Settings, auth: OAuth2ClientCredentials) => Promise<string>;
export declare const getAuthSettings: (settings: SettingsWithOauth) => OAuth2ClientCredentials;
export declare const REGEX_EXTERNALUSERID: RegExp;
export declare const TTL_MAX_VALUE = 34300800;
export {};
