export type ServiceConnectionsByType = 'ack' | 'codeup' | 'git' | 'ecs' | 'aone_code' | 'customGitlab' | 'private_docker_registry'; export declare function catchFlowError({ errorMsg, errorCode, }: { errorMsg: string; errorCode: string; }): void; export interface ServiceConnection { aliyunResourceServiceConnection: boolean; authId: number; authType: string; connectionName: string; connectionType: 'ack' | 'Codeup' | 'git'; creator: string; editable: true; gmtCreate: number; gmtModified: number; id: number; modifier: string; owner: string; scope: 'GLOBAL' | 'PERSONAL' | 'CUSTOM'; typeName: string; uuid: string; viewable: boolean; serviceAuth?: { content: string; }; } export interface CodeupRepo { accessLevel?: number; id: number; lastActiveAt?: string; name: string; nameWithNamespace: string; namespaceId?: number; webURL: string; } export interface CodeupBranch { commit: { id: string; }; id: string; commitId: string; name: string; protectedBranch: boolean; } export declare const pipelinesQueryByRegion: ({ refObjectType, refObjectId, }: { refObjectType: string; refObjectId: string; }) => Promise; /** * * 获取流水线详情 */ export declare const getPipelineDetailById: (pipelineId: string) => Promise; /** * * 获取服务连接列表 */ export declare const getServiceConnections: () => Promise; /** * * 获取flow帮助链接 */ export declare const getDocs: () => Promise; /** * * 查询指定类型的服务连接列表 */ export declare const getServiceConnectionsByType: (type?: ServiceConnectionsByType, connectionNamePattern?: string) => Promise; /** * * 通过服务连接ID 查询仓库列表 */ export declare const getRepos: (type: ServiceConnectionsByType, connectionId: number, q?: string) => Promise; /** * * 通过服务连接ID 查询ACK集群列表 */ export declare const getAckClusters: (connectionId: number) => Promise; /** * * 查询Flow当前用户权限,并写到AK_GLOBAL上 */ export declare const getPermissions: () => Promise; /** * 设置 flow 功能开关 */ export declare const setFlowFeature: () => void;