import { SelectProps } from 'antd'; import { HttpError, UseSelectProps, BaseRecord, UseInvalidateProp } from '@refinedev/core'; import { UseCustomMutationParams } from '../../types'; /** * 授予項目權限的 Props * @interface TGrantUsersProps * @property {string[]} user_ids - 要授予權限的用戶 ID 陣列 * @property {SelectProps} [selectProps] - Select 元件 props * @property {UseSelectProps} useSelectProps - 選擇資源的 API useSelectProps * @property {string} [url] - 授權 API 的 url,預設為 `${apiUrl}/courses/add-students` * @property {UseCustomMutationParams} [useCustomMutationParams] - API 參數 * @property {string} [label] - 資源名稱 * @property {boolean} [hideLabel] - 是否隱藏 label * @property {Partial} [useInvalidateProp] - invalidate 參數 */ type TGrantUsersProps = { user_ids: string[]; selectProps?: SelectProps; useSelectProps: UseSelectProps; url?: string; useCustomMutationParams?: UseCustomMutationParams; label?: string; hideLabel?: boolean; useInvalidateProp?: Partial; }; export declare const GrantUsers: ({ user_ids, selectProps, useSelectProps, url, useCustomMutationParams, label, hideLabel, useInvalidateProp, }: TGrantUsersProps) => import("react").JSX.Element; export {};