///
declare const defaultState: {
loading: boolean;
orderFinished: boolean;
order: {
name: string;
description: string;
state: IEnvJob;
appName: string;
gmtCreate: string;
endedAt: string;
sn: string;
type: IOrderType;
creator: string;
version: string;
startedAt: string;
};
waiting: boolean;
envList: string[];
activeEnv: string;
openedJobSns: string[];
envMap: Record;
jobMap: Record;
stageMap: Record;
taskMap: Record;
variableRevision: {
sha: string;
message: string;
author: string;
commitTime: number;
};
errorCode: string;
isScale: boolean;
isRollback: boolean;
isDestroy: boolean;
socketError: boolean;
sidebarHidden: boolean;
replaceLinks: {};
headers: {};
apiHeaderFn: () => void;
};
type IOrderModelState = typeof defaultState;
export declare function OrderProvider({ children }: {
children: React.ReactNode;
}): import("react").JSX.Element;
export declare function useOrderStore(): {
state: {
loading: boolean;
orderFinished: boolean;
order: {
name: string;
description: string;
state: IEnvJob;
appName: string;
gmtCreate: string;
endedAt: string;
sn: string;
type: IOrderType;
creator: string;
version: string;
startedAt: string;
};
waiting: boolean;
envList: string[];
activeEnv: string;
openedJobSns: string[];
envMap: Record;
jobMap: Record;
stageMap: Record;
taskMap: Record;
variableRevision: {
sha: string;
message: string;
author: string;
commitTime: number;
};
errorCode: string;
isScale: boolean;
isRollback: boolean;
isDestroy: boolean;
socketError: boolean;
sidebarHidden: boolean;
replaceLinks: {};
headers: {};
apiHeaderFn: () => void;
};
dispatch: {
update: (payload: Partial) => void;
reset: () => void;
updateTaskDeployment: (payload: {
taskSn: string;
deployment: any;
}) => void;
updateOrder: (payload: {
order: any;
envAuth: Record;
appName: string;
}) => void;
fetchOrder: (params: any) => Promise;
fetchDeployment: (taskSn: string, state: IOrderModelState, apiHeaderFn: any) => Promise;
action: (params: any & {
orderSn: string;
}, envAuth: Record) => Promise;
};
};
export {};