import { Logger } from 'winston'; /** * @public */ export declare function initRepoAndPush(input: { dir: string; remoteUrl: string; auth: { username: string; password: string; } | { token: string; }; logger: Logger; defaultBranch?: string; commitMessage?: string; gitAuthorInfo?: { name?: string; email?: string; }; signingKey?: string; }): Promise<{ commitHash: string; }>; /** * @public */ export declare function commitAndPushRepo(input: { dir: string; auth: { username: string; password: string; } | { token: string; }; logger: Logger; commitMessage: string; gitAuthorInfo?: { name?: string; email?: string; }; branch?: string; remoteRef?: string; signingKey?: string; }): Promise<{ commitHash: string; }>; /** * @public */ export declare function cloneRepo(options: { url: string; dir: string; auth: { username: string; password: string; } | { token: string; }; logger?: Logger | undefined; ref?: string | undefined; depth?: number | undefined; noCheckout?: boolean | undefined; }): Promise; /** * @public */ export declare function createBranch(options: { dir: string; ref: string; auth: { username: string; password: string; } | { token: string; }; logger?: Logger | undefined; }): Promise; /** * @public */ export declare function addFiles(options: { dir: string; filepath: string; auth: { username: string; password: string; } | { token: string; }; logger?: Logger | undefined; }): Promise; /** * @public */ export declare function commitAndPushBranch(options: { dir: string; auth: { username: string; password: string; } | { token: string; }; logger?: Logger | undefined; commitMessage: string; gitAuthorInfo?: { name?: string; email?: string; }; branch?: string; remoteRef?: string; remote?: string; signingKey?: string; }): Promise<{ commitHash: string; }>;