import { Org, SfProject } from '@salesforce/core'; import { ComponentSet, ForceIgnore, SourceComponent } from '@salesforce/source-deploy-retrieve'; import { SourceTracking } from '@salesforce/source-tracking'; import { Optional } from '@salesforce/ts-types'; import { KcDiffFlags, SourceTrackInformation } from '../commands/kc/diff.js'; import { API } from './types.js'; type BaseOperation = 'deploy' | 'retrieve'; export type PreviewFile = { fullName: string; type: string; conflict: boolean; ignored: boolean; path?: string; projectRelativePath?: string; operation?: BaseOperation | 'deletePost' | 'deletePre'; }; export type PreviewResult = { ignored: PreviewFile[]; conflicts: PreviewFile[]; toDeploy: PreviewFile[]; toDelete: PreviewFile[]; toRetrieve: PreviewFile[]; }; export type DeployOptions = { api: API; 'target-org': string; 'api-version'?: string; manifest?: string; metadata?: string[]; 'source-dir'?: string[]; concise?: boolean; }; /** Manifest is expected. You cannot pass metadata and source-dir array--use those to get a manifest */ export type CachedOptions = Omit & { wait: number; /** whether the user passed in anything for metadata-dir (could be a folder, could be a zip) */ isMdapi: boolean; } & Partial>; export declare const compileResults: ({ componentSet, projectPath, filesWithConflicts, forceIgnore, baseOperation, remoteDeletes, }: { componentSet: ComponentSet; projectPath: string; filesWithConflicts: Set; forceIgnore: ForceIgnore; baseOperation: BaseOperation; remoteDeletes?: SourceComponent[]; }) => PreviewResult; export declare const printTables: (retrieveResult: PreviewResult, deployResult: PreviewResult, concise?: boolean) => void; export declare const getConflictFiles: (stl?: SourceTracking, ignore?: boolean) => Promise>; export declare class Utils { static getComponents(project: SfProject | undefined, flags: KcDiffFlags, targetOrg: Org): Promise; } export declare function buildComponentSet(opts: Partial, stl?: SourceTracking): Promise; export declare function getPackageDirs(): Promise; export declare function getSourceApiVersion(): Promise>; export declare function getOptionalProject(): Promise; export {};