import type { ServiceResponse } from '../../../models/Generic.js';
import type { SyncConfig } from '../../../models/Sync.js';
import type { DBEnvironment, DBTeam, CleanedIncomingFlowConfig, IncomingPreBuiltFlowConfig, OnEventScriptsByProvider, IncomingFlowConfig, SyncDeploymentResult } from '@nangohq/types';
import type { Result } from '@nangohq/utils';
import type { LogContext, LogContextGetter } from '@nangohq/logs';
import type { Orchestrator } from '../../../clients/orchestrator.js';
import type { JSONSchema7 } from 'json-schema';
import type { Config } from '../../../models/Provider.js';
import type { NangoSyncConfig } from '../../../models/NangoConfig.js';
interface SyncConfigResult {
    result: SyncDeploymentResult[];
    logCtx: LogContext;
}
/**
 * Transform received incoming flow from the CLI to an internally standard object
 */
export declare function cleanIncomingFlow(flowConfigs: IncomingFlowConfig[]): CleanedIncomingFlowConfig[];
export declare function deploy({ environment, account, flows, jsonSchema, onEventScriptsByProvider, nangoYamlBody, logContextGetter, orchestrator, debug }: {
    environment: DBEnvironment;
    account: DBTeam;
    flows: CleanedIncomingFlowConfig[];
    jsonSchema?: JSONSchema7 | undefined;
    onEventScriptsByProvider?: OnEventScriptsByProvider[] | undefined;
    nangoYamlBody: string;
    logContextGetter: LogContextGetter;
    orchestrator: Orchestrator;
    debug?: boolean;
}): Promise<ServiceResponse<SyncConfigResult | null>>;
export declare function upgradePreBuilt({ environment, account, config, syncConfig, flow, logContextGetter }: {
    environment: DBEnvironment;
    account: DBTeam;
    config: Config;
    syncConfig: SyncConfig;
    flow: NangoSyncConfig;
    logContextGetter: LogContextGetter;
}): Promise<Result<boolean | null>>;
export declare function deployPreBuilt({ environment, account, configs, logContextGetter, orchestrator }: {
    environment: DBEnvironment;
    account: DBTeam;
    configs: IncomingPreBuiltFlowConfig[];
    logContextGetter: LogContextGetter;
    orchestrator: Orchestrator;
}): Promise<ServiceResponse<SyncConfigResult | null>>;
export {};
