type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
interface FetchWithAuthOptions {
    method?: HttpMethod;
    params?: Record<string, any>;
    headers?: Record<string, string>;
    retryCount?: number;
}
type CallControlPlaneResponse = any | {
    error: string;
    status?: number;
};
/** Control Plane expects `Authorization: Bearer <token>` (same as dataset/media uploads). */
export declare function formatControlPlaneAuthorization(token: string | string[] | undefined, apiKey?: string): string;
export declare const callControlPlane: (endpoint: string, options: FetchWithAuthOptions | undefined, token: any, controlPlaneUrl?: string) => Promise<CallControlPlaneResponse>;
export declare const callControlPlaneWithFormData: (endpoint: string, formData: FormData, options: Omit<FetchWithAuthOptions, "params"> | undefined, token: any, controlPlaneUrl?: string) => Promise<any>;
export {};
//# sourceMappingURL=callControlPlaneApi.d.ts.map