import { type RowAction, type TableRow } from "@appcorp/shadcn/components/enhanced-table"; import { PermissionBE, RoleBE, RolePermissionBE } from "../../type"; export declare const RBAC_DRAWER: { readonly FILTER_DRAWER: string; readonly FORM_DRAWER: string; readonly VIEW_DRAWER: string; readonly MORE_ACTIONS_DRAWER: string; }; export declare const RBAC_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"; }, rbacModuleConfig: import("@react-pakistan/util-functions/factory/generic-module-factory").ModuleConfig<{ description: string; enabled: boolean; errors: Record; id: string; name: string; rolePermissions: RolePermissionBE[]; availablePermissions: PermissionBE[]; togglingPermission: boolean; count: number; items: RoleBE[]; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: null; modal: null; }>, initialRbacState: { description: string; enabled: boolean; errors: Record; id: string; name: string; rolePermissions: RolePermissionBE[]; availablePermissions: PermissionBE[]; togglingPermission: boolean; count: number; items: RoleBE[]; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: null; modal: null; }, RbacProvider: import("react").FC<{ children: React.ReactNode; }>, rbacReducer: (state: { description: string; enabled: boolean; errors: Record; id: string; name: string; rolePermissions: RolePermissionBE[]; availablePermissions: PermissionBE[]; togglingPermission: boolean; count: number; items: RoleBE[]; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: null; modal: null; }, action: any) => { description: string; enabled: boolean; errors: Record; id: string; name: string; rolePermissions: RolePermissionBE[]; availablePermissions: PermissionBE[]; togglingPermission: boolean; count: number; items: RoleBE[]; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: null; modal: null; }, useRbacContext: () => import("@react-pakistan/util-functions/factory/generic-module-factory").GenericModuleContextWithHandlers<{ description: string; enabled: boolean; errors: Record; id: string; name: string; rolePermissions: RolePermissionBE[]; availablePermissions: PermissionBE[]; togglingPermission: boolean; count: number; items: RoleBE[]; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: null; modal: null; }>; /** * Backward-compatible alias used by dashboard-providers.tsx */ export declare const RbacStateContextProvider: import("react").FC<{ children: React.ReactNode; }>; export declare const useRbacModule: () => { applyFilters: () => void; byIdLoading: boolean; clearFilters: () => void; clearSearch: () => void; closeDrawer: () => void; deleteLoading: boolean; handleChange: (key: string, value: string | number | boolean | undefined) => void; resetRecordFormState: () => void; handleCreate: () => void; handleDelete: (row?: TableRow) => void; handleEdit: (row?: TableRow) => Promise; handleFilters: () => void; handleMoreActions: () => void; handleNextClick: () => void; handlePageChange: (page: number | unknown) => void; handlePageLimitChange: (k: string, value: object) => void; handlePreviousClick: () => void; handleSearch: (query: string) => void; handleSubmit: () => void; handleTogglePermission: (permissionId: string) => Promise; handleView: (row?: TableRow) => void; headerActions: { enabled: boolean; handleOnClick: () => void; label: string; order: number; }[]; listError: Error | undefined; listFetchNow: (url?: string, config?: import("@react-pakistan/util-functions/hooks/use-fetch").FetchConfig) => void; listLoading: boolean; rowActions: RowAction[]; updateLoading: boolean; handleCloseDrawer?: () => void; state: { description: string; enabled: boolean; errors: Record; id: string; name: string; rolePermissions: RolePermissionBE[]; availablePermissions: PermissionBE[]; togglingPermission: boolean; count: number; items: RoleBE[]; currentPage: number; pageLimit: number; searchQuery: string; disableSaveButton: boolean; drawer: null; modal: null; }; dispatch: React.Dispatch; };