1 | import { Repository } from './repository';
|
2 | import { Signature } from './signature';
|
3 | import { Oid } from './oid';
|
4 |
|
5 | export class Note {
|
6 | static create(
|
7 | repo: Repository,
|
8 | notesRef: string,
|
9 | author: Signature,
|
10 | committer: Signature,
|
11 | oid: Oid,
|
12 | note: string,
|
13 | force: number,
|
14 | ): Promise<Oid>;
|
15 | static foreach(repo: Repository, notesRef: string, noteCb: Function, payload: any): Promise<number>;
|
16 | static iteratorNew(repo: Repository, notesRef: string): Promise<any>;
|
17 | static next(noteId: Oid, annotatedId: Oid, it: any): number;
|
18 | static read(repo: Repository, notesRef: string, oid: Oid): Promise<Note>;
|
19 | static remove(
|
20 | repo: Repository,
|
21 | notesRef: string,
|
22 | author: Signature,
|
23 | committer: Signature,
|
24 | oid: Oid,
|
25 | ): Promise<number>;
|
26 |
|
27 | author(): Signature;
|
28 | committer(): Signature;
|
29 |
|
30 | free(): void;
|
31 | id(): Oid;
|
32 | message(): string;
|
33 | }
|