togezr
Version:
Better together_
37 lines • 3.31 kB
TypeScript
import { AccountTreeItem } from '../activityBar/accounts/AccountTreeItem';
import { GitHubAccountRepoTreeItem } from '../activityBar/github/GitHubAccountRepoTreeItem';
import { IRegisterBranchOptions } from './registerBranch';
export declare const CommandId: {
readonly addConnector: "togezr.addConnector";
readonly removeConnector: "togezr.removeConnector";
readonly setGitHubToken: "togezr.setGitHubToken";
readonly connectBranch: "togezr.connectBranch";
readonly disconnectBranch: "togezr.disconnectBranch";
readonly shareInto: "togezr.shareInto";
readonly shareIntoAccount: "togezr.shareIntoAccount";
readonly stopRunningSession: "togezr.stopRunningSession";
readonly startBranchConnectionSession: "togezr.startBranchConnectionSession";
readonly openInBrowser: "togezr.openInBrowser";
readonly openConnectorInBrowser: "togezr.openConnectorInBrowser";
readonly addAccount: "togezr.addAccount";
readonly removeAccount: "togezr.removeAccount";
readonly openAccountInBrowser: "togezr.openAccountInBrowser";
readonly addAccountEntity: "togezr.addAccountEntity";
readonly removeGitHubAccountRepo: "togezr.removeGitHubAccountRepo";
};
export declare function registerCommand(name: typeof CommandId.addConnector, command: () => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.removeConnector, command: () => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.connectBranch, command: (options?: IRegisterBranchOptions) => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.disconnectBranch, command: (branch: any) => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.shareInto, command: () => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.stopRunningSession, command: () => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.startBranchConnectionSession, command: () => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.openInBrowser, command: () => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.openConnectorInBrowser, command: () => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.addAccount, command: () => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.removeAccount, command: () => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.shareIntoAccount, command: () => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.openAccountInBrowser, command: (treeItem: any) => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.addAccountEntity, command: (account: AccountTreeItem) => Promise<unknown>): Promise<void>;
export declare function registerCommand(name: typeof CommandId.removeGitHubAccountRepo, command: (account: GitHubAccountRepoTreeItem) => Promise<unknown>): Promise<void>;
//# sourceMappingURL=registerCommand.d.ts.map