import { Component } from 'projen'; import { SourceRepository } from '../repository'; export interface DifferenceOptions { /** * This is the target branch of the pull request. Branch will be created off default if it does not exist * @default main (or repository default branch) */ targetBranch?: string; } export declare class Difference extends Component { readonly repository: SourceRepository; readonly originBranch: string; readonly options?: DifferenceOptions | undefined; static BUNDLE_PATH: string; readonly identifier: string; readonly targetBranch?: string; patches: { filepath: string; filecontent: string; }[]; /** * * @param sourceRepository the source repository the difference is against * @param originBranch This is the origin branch of the pull request. Branch will be created if it does not exist. * @param options */ constructor(repository: SourceRepository, originBranch: string, options?: DifferenceOptions | undefined); /** * Takes a difference in patch format that can be applied directly across a fileset * @param id id of the patch, used as the filename. Can be used to break up the patches which make up a difference for easier viewing. * @param difference difference in patch format */ addPatch(id: string, patch: string): void; synthesize(): void; }