import type { ServiceResponse } from '../../../models/Generic.js';
import type { SyncConfig, SyncConfigResult } from '../../../models/Sync.js';
import type { DBEnvironment, DBTeam, IncomingFlowConfig, IncomingPreBuiltFlowConfig, PostConnectionScriptByProvider } from '@nangohq/types';
import type { Result } from '@nangohq/utils';
import type { 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';
export declare function deploy({ environment, account, flows, jsonSchema, postConnectionScriptsByProvider, nangoYamlBody, logContextGetter, orchestrator, debug }: {
    environment: DBEnvironment;
    account: DBTeam;
    flows: IncomingFlowConfig[];
    jsonSchema?: JSONSchema7 | undefined;
    postConnectionScriptsByProvider: PostConnectionScriptByProvider[];
    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>>;
