import { Repository } from './repository'; import { Signature } from './signature'; import { Oid } from './oid'; import { Buf } from './buf'; import { Object } from './object'; import { Tree } from './tree'; import { TreeEntry } from './tree-entry'; import { Diff } from './diff'; export class Commit { static create(repo: Repository, update_ref: string, author: Signature, committer: Signature, message_encoding: string, message: string, tree: Tree, parent_count: number, parents: any[]): Oid; static createV(id: Oid, repo: Repository, update_ref: string, author: Signature, committer: Signature, message_encoding: string, message: string, tree: Tree, parent_count: number): number; static lookup(repo: Repository, id: string | Oid | Commit): Promise; static lookupPrefix(repo: Repository, id: Oid, len: number): Promise; amend(update_ref: string, author: Signature, committer: Signature, message_encoding: string, message: string, tree: Tree): Oid; author(): Signature; committer(): Signature; free(): void; headerField(field: string): Promise; id(): Oid; message(): string; messageEncoding(): string; messageRaw(): string; nthGenAncestor(n: number): Promise; owner(): Repository; parent(n: number): Promise; parentId(n: number): Oid; parentcount(): number; rawHeader(): string; summary(): string; time(): number; timeOffset(): number; tree(tree_out: Tree): number; treeId(): Oid; sha(): string; timeMs(): number; date(): Date; getTree(): Promise; getEntry(path: string): Promise; history(): EventEmitter; getParents(limit: number, callback: Function): Promise; parents(callback: Function): Oid[]; getDiff(callback: Function): Promise; getDiffWithOptions(options: Object, callback: Function): Promise; toString(): string; }