UNPKG

2.71 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;
38declare function getAllSteps(): any;
39export declare const Step: {
40 push: typeof pushStep;
41 pop: typeof popStep;
42 tag: typeof tagStep;
43 edit: typeof editStep;
44 sort: typeof sortStep;
45 reword: typeof rewordStep;
46 show: typeof showStep;
47 assert: typeof assertStep;
48 commit: typeof commitStep;
49 current: typeof getCurrentStep;
50 currentSuper: typeof getCurrentSuperStep;
51 next: typeof getNextStep;
52 nextSuper: typeof getNextSuperStep;
53 base: typeof getStepBase;
54 recentCommit: typeof getRecentStepCommit;
55 recentSuperCommit: typeof getRecentSuperStepCommit;
56 recentSubCommit: typeof getRecentSubStepCommit;
57 descriptor: typeof getStepDescriptor;
58 superDescriptor: typeof getSuperStepDescriptor;
59 subDescriptor: typeof getSubStepDescriptor;
60 initializeStepMap: typeof initializeStepMap;
61 getStepMap: typeof getStepMap;
62 ensureStepMap: typeof ensureStepMap;
63 disposeStepMap: typeof disposeStepMap;
64 updateStepMap: typeof updateStepMap;
65 all: typeof getAllSteps;
66};
67export {};