UNPKG

2.64 kBTypeScriptView Raw
1declare function getRecentStepCommit(offset: any, format?: any): any;
2declare function getRecentSuperStepCommit(offset: any, format?: any): any;
3declare function getRecentSubStepCommit(offset: any, format?: any): any;
4declare function getStepDescriptor(message: any): {
5 number: string;
6 message: string;
7 type: string;
8};
9declare function getSuperStepDescriptor(message: any): {
10 number: number;
11 message: any;
12};
13declare function getSubStepDescriptor(message: any): {
14 number: any;
15 superNumber: number;
16 subNumber: number;
17 message: any;
18};
19declare function pushStep(message: any, options: any): void;
20declare function popStep(): void;
21declare function tagStep(message: any): void;
22declare function getStepBase(step: any): string;
23declare function editStep(steps: any, options?: any): void;
24declare function sortStep(step: any): void;
25declare function rewordStep(step: any, message: any): void;
26declare function showStep(step: any, ...args: any[]): void;
27declare function assertStep(step: string | number, silent?: boolean): boolean;
28declare function commitStep(step: any, message: any, options?: any): void;
29declare function getCurrentStep(): string;
30declare function getCurrentSuperStep(): number | "root";
31declare function getNextStep(offset?: any): string;
32declare function getNextSuperStep(offset?: any): string;
33declare function initializeStepMap(pending: any): void;
34declare function getStepMap(submoduleCwd?: any, checkPending?: any): any;
35declare function ensureStepMap(submoduleCwd?: any, checkPending?: any): boolean;
36declare function disposeStepMap(): void;
37declare function updateStepMap(type: any, payload: any): void;
38export declare const Step: {
39 push: typeof pushStep;
40 pop: typeof popStep;
41 tag: typeof tagStep;
42 edit: typeof editStep;
43 sort: typeof sortStep;
44 reword: typeof rewordStep;
45 show: typeof showStep;
46 assert: typeof assertStep;
47 commit: typeof commitStep;
48 current: typeof getCurrentStep;
49 currentSuper: typeof getCurrentSuperStep;
50 next: typeof getNextStep;
51 nextSuper: typeof getNextSuperStep;
52 base: typeof getStepBase;
53 recentCommit: typeof getRecentStepCommit;
54 recentSuperCommit: typeof getRecentSuperStepCommit;
55 recentSubCommit: typeof getRecentSubStepCommit;
56 descriptor: typeof getStepDescriptor;
57 superDescriptor: typeof getSuperStepDescriptor;
58 subDescriptor: typeof getSubStepDescriptor;
59 initializeStepMap: typeof initializeStepMap;
60 getStepMap: typeof getStepMap;
61 ensureStepMap: typeof ensureStepMap;
62 disposeStepMap: typeof disposeStepMap;
63 updateStepMap: typeof updateStepMap;
64};
65export {};