UNPKG

2.84 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 stepBack(targetStep: string, options?: {
23 interactive: boolean;
24}): Promise<void>;
25declare function getStepBase(step: any): string;
26declare function editStep(steps: any, options?: any): void;
27declare function sortStep(step: any): void;
28declare function rewordStep(step: any, message: any): void;
29declare function showStep(step: any, ...args: any[]): void;
30declare function assertStep(step: string | number, silent?: boolean): boolean;
31declare function commitStep(step: any, message: any, options?: any): void;
32declare function getCurrentStep(): string;
33declare function getCurrentSuperStep(): number | "root";
34declare function getNextStep(offset?: any): string;
35declare function getNextSuperStep(offset?: any): string;
36declare function initializeStepMap(pending: any): void;
37declare function getStepMap(submoduleCwd?: any, checkPending?: any): any;
38declare function ensureStepMap(submoduleCwd?: any, checkPending?: any): boolean;
39declare function disposeStepMap(): void;
40declare function updateStepMap(type: any, payload: any): void;
41declare function getAllSteps(): any;
42export declare const Step: {
43 push: typeof pushStep;
44 pop: typeof popStep;
45 tag: typeof tagStep;
46 back: typeof stepBack;
47 edit: typeof editStep;
48 sort: typeof sortStep;
49 reword: typeof rewordStep;
50 show: typeof showStep;
51 assert: typeof assertStep;
52 commit: typeof commitStep;
53 current: typeof getCurrentStep;
54 currentSuper: typeof getCurrentSuperStep;
55 next: typeof getNextStep;
56 nextSuper: typeof getNextSuperStep;
57 base: typeof getStepBase;
58 recentCommit: typeof getRecentStepCommit;
59 recentSuperCommit: typeof getRecentSuperStepCommit;
60 recentSubCommit: typeof getRecentSubStepCommit;
61 descriptor: typeof getStepDescriptor;
62 superDescriptor: typeof getSuperStepDescriptor;
63 subDescriptor: typeof getSubStepDescriptor;
64 initializeStepMap: typeof initializeStepMap;
65 getStepMap: typeof getStepMap;
66 ensureStepMap: typeof ensureStepMap;
67 disposeStepMap: typeof disposeStepMap;
68 updateStepMap: typeof updateStepMap;
69 all: typeof getAllSteps;
70};
71export {};