import { SourceToTarget, Mapping } from "../domain/mapping"; /** * Given a target branch (i.e. base branch in a PR), it returns the branch name * that is mapped for the given starting project, current project and target branch * The target branch acts as the source in the Mapping domain object. If there is source * which is the same as the target branch, then it returns the target of that source. * If no mapping is found it returns the target branch itself. * @param startingProject * @param startingProjectMappings * @param currentProject * @param currentProjectMappings * @param targetBranch * @returns */ export declare function getMappedTarget(startingProject: string, startingProjectMappings: Mapping | undefined, currentProject: string, currentProjectMappings: Mapping | undefined, targetBranch: string): string; /** * Returns the mapping for the given starting project, current project and target branch. * Finds the mapping in the following order: * 1. starting project's dependencies[current project] * 2. starting project's dependencies[default] * 3. current project's dependant[starting project] * 4. current project's dependant[default] * * returns undefined if starting and current project are the same or no mapping was found or * a project was excluded in the other project's mapping * @param startingProject * @param startingProjectMappings * @param currentProject * @param currentProjectMappings * @param targetBranch * @returns */ export declare function getMapping(startingProject: string, startingProjectMappings: Mapping | undefined, currentProject: string, currentProjectMappings: Mapping | undefined, targetBranch: string): SourceToTarget | undefined;