import type { ExtensionFormInfo, RoleInfo, MemberInfo, RoleFormValues, PaginationData, AvailablePermissions } from './types';
/**
 * 获取扩展表单列表
 * @returns
 */
export declare const getExtensionFormList: (params: {
    skip?: number;
    num?: number;
    type?: string;
}) => Promise<PaginationData<ExtensionFormInfo>>;
/**
 * 获取角色列表
 * GET: /tenant/role
 * Query: with_count[]=tenant_account
 */
export declare const getRoles: () => Promise<RoleInfo[]>;
/**
 * 获取角色详情
 * GET: /tenant/role/{id}
 */
export declare const getRoleDetail: (id: number) => Promise<RoleInfo>;
/**
 * 创建角色
 * POST: /tenant/role
 */
export declare const createRole: (role: RoleFormValues) => Promise<RoleInfo>;
/**
 * 更新角色
 * POST: /tenant/role/{id}
 */
export declare const updateRole: (id: number, updates: Partial<RoleFormValues>) => Promise<RoleInfo>;
/**
 * 删除角色
 * DELETE: /tenant/role/{id}
 */
export declare const deleteRole: (id: number) => Promise<void>;
/**
 * 获取角色成员列表 (通过筛选租户账户列表实现)
 * GET: /tenant/account
 * Query: tenant_role_ids[]={roleId}, with[]=account, with[]=roles
 */
export declare const getRoleMembers: (params: {
    tenant_role_ids: number[];
    with?: string[];
    page?: number;
    size?: number;
}) => Promise<PaginationData<MemberInfo>>;
/**
 * 获取角色permission
 */
export declare const getRolePermission: () => Promise<AvailablePermissions>;
/**
 * 更新角色成员列表
 * @param memberId
 * @param roleIds
 */
export declare const updateRoleMembers: (roleId: number, accountIds: number[]) => Promise<void>;
/**
 * 移除角色成员
 * DELETE: /tenant/role/{roleId}/accounts
 * Query: tenant_account_ids={tenantAccountId}
 */
export declare const removeRoleMember: (roleId: number, tenantAccountId: number) => Promise<void>;
/**
 * 获取所有成员列表 (用于选择添加)
 * GET: /tenant/account
 */
export declare const getAllMembers: (params?: {
    page?: number;
    size?: number;
    search?: string;
}) => Promise<PaginationData<MemberInfo>>;
