import { GithubConnector } from "./connector"; import { Tree } from "./types"; export declare class GithubSessionFactory { private readonly context; private readonly connector; constructor(context: { owner: string; repo: string; }, connector: GithubConnector); create({ sourceBranch, outputBranch }: { sourceBranch: string; outputBranch: string; }): GithubSession; } export declare class GithubSession { private readonly context; private readonly connector; constructor(context: { owner: string; repo: string; branch: string; outputBranch: string; }, connector: GithubConnector); getFile(path: string): Promise<{ data: string; sha: string; }>; createTree(tree: Tree[]): Promise<{ sha: string; url: string; truncated: boolean; tree: { path?: string | undefined; mode?: string | undefined; type?: string | undefined; sha?: string | undefined; size?: number | undefined; url?: string | undefined; }[]; }>; createBlob(content: string): Promise<{ url: string; sha: string; }>; getCurrentCommit(): Promise<{ commitSha: string; treeSha: string; }>; commit(message: string, _parentCommitSha: string, newTreeSha: string): Promise>; }