/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import { Transaction } from '@nocobase/database'; import { Plugin } from '@nocobase/server'; import { RoleModel } from './model/RoleModel'; import { RoleResourceActionModel } from './model/RoleResourceActionModel'; import { RoleResourceModel } from './model/RoleResourceModel'; import { SanitizeAssociationValuesOptions } from './middlewares/check-change-with-association'; import type { ACL } from '@nocobase/acl'; export declare class PluginACLServer extends Plugin { get acl(): ACL; sanitizeAssociationValues(options: SanitizeAssociationValuesOptions & { acl?: ACL; }): Promise; writeResourceToACL(resourceModel: RoleResourceModel, transaction: Transaction): Promise; writeActionToACL(actionModel: RoleResourceActionModel, transaction: Transaction): Promise; handleSyncMessage(message: any): Promise; writeRolesToACL(options: any): Promise; writeRoleToACL(role: RoleModel, options?: any): Promise; beforeLoad(): Promise; install(): Promise; load(): Promise; } export default PluginACLServer;