import { HTTPError } from '@segment/actions-core';
export interface RefreshTokenResponse {
    access_token: string;
    scope: string;
    expires_in: number;
    token_type: string;
}
export interface ProfileAPIResponse {
    id: string;
}
export interface LinkedInError {
    response: {
        data: {
            message: string;
            code: string;
            status: number;
        };
    };
}
export declare class LinkedInTestAuthenticationError extends HTTPError {
    response: Response & {
        data: {
            message: string;
        };
    };
}
export declare class LinkedInRefreshTokenError extends HTTPError {
    response: Response & {
        data: {
            error: string;
            error_description: string;
        };
    };
}
export interface GetAdAccountsAPIResponse {
    paging: {
        count: number;
        links: Array<any>;
        start: number;
        total: number;
    };
    elements: [Account];
}
export interface Account {
    name: string;
    id: string;
}
export interface AccountsErrorInfo {
    response: {
        data: {
            message?: string;
            code?: string;
        };
    };
}
export interface GetConversionListAPIResponse {
    paging: {
        count: number;
        links: Array<any>;
        start: number;
        total: number;
    };
    elements: [Conversions];
}
export interface Conversions {
    name: string;
    id: string;
    enabled: boolean;
    conversionMethod: string;
}
export interface GetCampaignsListAPIResponse {
    paging: {
        count: number;
        links: Array<any>;
        start: number;
        total: number;
    };
    elements: [Campaigns];
}
export interface Campaigns {
    name: string;
    id: string;
}
export interface ConversionRuleCreationResponse {
    id: string;
    name: string;
    type: string;
    attributionType: string;
    postClickAttributionWindowSize: number;
    viewThroughAttributionWindowSize: number;
}
export interface ConversionRuleUpdateResponse {
}
export interface GetConversionRuleResponse {
    conversionMethod?: string;
    type?: string;
    enabled?: boolean;
    name?: string;
    id?: string;
    attributionType?: string;
    account?: string;
    postClickAttributionWindowSize?: number;
    viewThroughAttributionWindowSize?: number;
}
