import { IWorkflowToImport } from '../../interfaces'; import { PullWorkFolderRequestDto, PushWorkFolderRequestDto, type GitCommitInfo, type SourceControlledFile } from '@n8n/api-types'; import { AuthenticatedRequest } from '@n8n/db'; import * as express from 'express'; import type { PullResult } from 'simple-git'; import { SourceControlPreferencesService } from './source-control-preferences.service.ee'; import { SourceControlScopedService } from './source-control-scoped.service'; import { SourceControlService } from './source-control.service.ee'; import type { ImportResult } from './types/import-result'; import { SourceControlRequest } from './types/requests'; import type { SourceControlPreferences } from './types/source-control-preferences'; import { EventService } from '../../events/event.service'; export declare class SourceControlController { private readonly sourceControlService; private readonly sourceControlPreferencesService; private readonly sourceControlScopedService; private readonly eventService; constructor(sourceControlService: SourceControlService, sourceControlPreferencesService: SourceControlPreferencesService, sourceControlScopedService: SourceControlScopedService, eventService: EventService); getPreferences(): Promise; setPreferences(req: SourceControlRequest.UpdatePreferences): Promise; updatePreferences(req: SourceControlRequest.UpdatePreferences): Promise; disconnect(req: SourceControlRequest.Disconnect): Promise; getBranches(): Promise<{ branches: string[]; currentBranch: string; }>; pushWorkfolder(req: AuthenticatedRequest, res: express.Response, payload: PushWorkFolderRequestDto): Promise<{ files: SourceControlledFile[]; commit: GitCommitInfo | null; }>; pullWorkfolder(req: AuthenticatedRequest, res: express.Response, payload: PullWorkFolderRequestDto): Promise; resetWorkfolder(): Promise; getStatus(req: SourceControlRequest.GetStatus): Promise<{ type: "workflow" | "project" | "credential" | "tags" | "variables" | "file" | "folders" | "datatable"; status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged"; id: string; name: string; updatedAt: string; location: "local" | "remote"; file: string; conflict: boolean; pushed?: boolean | undefined; isLocalPublished?: boolean | undefined; isRemoteArchived?: boolean | undefined; parentFolderId?: string | null | undefined; folderPath?: string[] | undefined; owner?: { type: "personal" | "team"; projectId: string; projectName: string; } | undefined; publishingError?: string | undefined; }[] | import("./types/source-control-get-status").SourceControlGetStatusVerboseResult>; status(req: SourceControlRequest.GetStatus): Promise<{ type: "workflow" | "project" | "credential" | "tags" | "variables" | "file" | "folders" | "datatable"; status: "unknown" | "new" | "modified" | "deleted" | "created" | "renamed" | "conflicted" | "ignored" | "staged"; id: string; name: string; updatedAt: string; location: "local" | "remote"; file: string; conflict: boolean; pushed?: boolean | undefined; isLocalPublished?: boolean | undefined; isRemoteArchived?: boolean | undefined; parentFolderId?: string | null | undefined; folderPath?: string[] | undefined; owner?: { type: "personal" | "team"; projectId: string; projectName: string; } | undefined; publishingError?: string | undefined; }[] | import("./types/source-control-get-status").SourceControlGetStatusVerboseResult>; generateKeyPair(req: SourceControlRequest.GenerateKeyPair): Promise; getFileContent(req: AuthenticatedRequest & { params: { type: SourceControlledFile['type']; id: string; }; }): Promise<{ content: IWorkflowToImport; type: SourceControlledFile['type']; }>; }