import { SubjectBE } from "../../type"; import { type RowAction, type TableRow } from "@appcorp/shadcn/components/enhanced-table"; export declare const SUBJECT_DRAWER: { readonly FILTER_DRAWER: string; readonly FORM_DRAWER: string; readonly MORE_ACTIONS_DRAWER: string; readonly VIEW_DRAWER: string; }; export declare const SUBJECT_ACTION_TYPES: { readonly RESET_FORM: "RESET_FORM"; readonly SET_CURRENT_PAGE: "SET_CURRENT_PAGE"; readonly SET_PAGE_LIMIT: "SET_PAGE_LIMIT"; readonly SET_SEARCH_QUERY: "SET_SEARCH_QUERY"; readonly SET_DRAWER: "SET_DRAWER"; readonly SET_ITEMS: "SET_ITEMS"; readonly SET_FORM_DATA: "SET_FORM_DATA"; readonly SET_DISABLE_SAVE_BUTTON: "SET_DISABLE_SAVE_BUTTON"; readonly SET_INPUT_FIELD: "SET_INPUT_FIELD"; readonly SET_ERRORS: "SET_ERRORS"; readonly SET_FILTERS: "SET_FILTERS"; }, subjectModuleConfig: import("@react-pakistan/util-functions/factory/generic-module-factory").ModuleConfig<{ items: SubjectBE[]; count: number; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: string | null; code: string; description: string; enabled: boolean; errors: Record; filterEnabled: boolean | undefined; id: string; name: string; schoolId: string; }>, initialSubjectState: { items: SubjectBE[]; count: number; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: string | null; code: string; description: string; enabled: boolean; errors: Record; filterEnabled: boolean | undefined; id: string; name: string; schoolId: string; }, SubjectProvider: import("react").FC<{ children: React.ReactNode; }>, subjectReducer: (state: { items: SubjectBE[]; count: number; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: string | null; code: string; description: string; enabled: boolean; errors: Record; filterEnabled: boolean | undefined; id: string; name: string; schoolId: string; }, action: any) => { items: SubjectBE[]; count: number; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: string | null; code: string; description: string; enabled: boolean; errors: Record; filterEnabled: boolean | undefined; id: string; name: string; schoolId: string; }, useSubjectContext: () => import("@react-pakistan/util-functions/factory/generic-module-factory").GenericModuleContextWithHandlers<{ items: SubjectBE[]; count: number; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: string | null; code: string; description: string; enabled: boolean; errors: Record; filterEnabled: boolean | undefined; id: string; name: string; schoolId: string; }>; export declare const useSubjectModule: () => { applyFilters: () => void; byIdLoading: boolean; clearFilters: () => void; clearSearch: () => void; closeDrawer: () => void; deleteLoading: boolean; handleChange: (field: string, value: string | number | boolean | null | undefined) => void; handleCreate: () => void; handleDelete: (row?: TableRow) => void; handleEdit: (row?: TableRow) => void; handleFilters: () => void; handleMoreActions: () => void; handlePageChange: (pageOrEvent?: unknown) => void; handlePageLimitChange: (k: string, value: object) => void; handleSearch: (query: string) => void; handleSubmit: () => void; handleView: (row?: TableRow) => void; headerActions: { enabled: boolean; handleOnClick: () => void; label: string; order: number; icon: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; }[]; listLoading: boolean; resetRecordFormState: () => void; rowActions: RowAction[]; updateLoading: boolean; handleCloseDrawer?: () => void; state: { items: SubjectBE[]; count: number; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: string | null; code: string; description: string; enabled: boolean; errors: Record; filterEnabled: boolean | undefined; id: string; name: string; schoolId: string; }; dispatch: React.Dispatch; };