import { Disposable, Event } from '@theia/core/lib/common'; import URI from '@theia/core/lib/common/uri'; export interface ScmProvider extends Disposable { readonly id: string; readonly label: string; readonly rootUri: string; readonly acceptInputCommand?: ScmCommand; readonly groups: ScmResourceGroup[]; readonly onDidChange: Event; readonly onDidChangeResources?: Event; readonly statusBarCommands?: ScmCommand[]; readonly onDidChangeStatusBarCommands?: Event; readonly onDidChangeCommitTemplate: Event; readonly amendSupport?: ScmAmendSupport; readonly actionButton?: ScmActionButton; readonly onDidChangeActionButton?: Event; readonly providerContextValue?: string; } export declare const ScmResourceGroup: unique symbol; export interface ScmResourceGroup extends Disposable { readonly id: string; readonly label: string; readonly resources: ScmResource[]; readonly hideWhenEmpty?: boolean; readonly contextValue?: string; readonly provider: ScmProvider; } export interface ScmResource { /** The uri of the underlying resource inside the workspace. */ readonly sourceUri: URI; readonly decorations?: ScmResourceDecorations; open(): Promise; readonly group: ScmResourceGroup; } export interface ScmResourceDecorations { icon?: string; iconDark?: string; tooltip?: string; source?: string; letter?: string; color?: string; strikeThrough?: boolean; } export interface ScmCommand { title: string; tooltip?: string; command?: string; arguments?: any[]; } export interface ScmCommit { readonly id: string; readonly summary: string; readonly authorName: string; readonly authorEmail: string; readonly authorDateRelative: string; } export interface ScmAmendSupport { getInitialAmendingCommits(amendingHeadCommitId: string, latestCommitId: string | undefined): Promise; getMessage(commit: string): Promise; reset(commit: string): Promise; getLastCommit(): Promise; } export interface ScmActionButton { command: ScmCommand; secondaryCommands?: ScmCommand[][]; enabled?: boolean; description?: string; } //# sourceMappingURL=scm-provider.d.ts.map