/// <reference types="react" />
import type { DeleteWorkAreaCounts, SaveWorkAreaPayload, WorkAreaItem, WorkAreaModalMode } from '../model';
interface UseAppWorkAreasParams {
    getText: (key: string) => string;
    workAreaModalMode: WorkAreaModalMode;
    editingWorkArea?: WorkAreaItem;
    closeWorkAreaModal: () => void;
}
/** 管理工作区域列表、选择状态、工作区域增删改和删除前计数。 */
export declare const useAppWorkAreas: ({ getText, workAreaModalMode, editingWorkArea, closeWorkAreaModal, }: UseAppWorkAreasParams) => {
    workAreas: WorkAreaItem[];
    selectedWorkArea: WorkAreaItem | undefined;
    selectedWorkAreaId: number | undefined;
    deleteModalOpen: boolean;
    deleteRecord: WorkAreaItem | undefined;
    deleteCounts: DeleteWorkAreaCounts;
    workAreaRequest: import("ahooks/lib/useRequest/src/types").Result<WorkAreaItem[], []>;
    saveRequest: import("ahooks/lib/useRequest/src/types").Result<WorkAreaItem | null, [payload: SaveWorkAreaPayload]>;
    getWorkAreaDetailRequest: import("ahooks/lib/useRequest/src/types").Result<WorkAreaItem | null, [params: {
        id: string | number;
        relation_count?: string[] | undefined;
    }]>;
    deleteRequest: import("ahooks/lib/useRequest/src/types").Result<any, [id: string | number]>;
    setSelectedWorkAreaId: import("react").Dispatch<import("react").SetStateAction<number | undefined>>;
    reloadWorkAreas: (selectedId?: number) => Promise<WorkAreaItem[]>;
    handleSaveWorkArea: (payload: SaveWorkAreaPayload) => Promise<void>;
    openDeleteModal: (record: WorkAreaItem) => void;
    closeDeleteModal: () => void;
    handleConfirmDelete: () => Promise<boolean>;
};
export {};
