import { ItemsService, QueryOptions } from '../services/items'; import { AbstractServiceOptions, Item, PrimaryKey, MutationOptions } from '../types'; import { Query, PermissionsAction } from '@directus/shared/types'; import Keyv from 'keyv'; export declare class PermissionsService extends ItemsService { systemCache: Keyv; constructor(options: AbstractServiceOptions); getAllowedFields(action: PermissionsAction, collection?: string): Record; readByQuery(query: Query, opts?: QueryOptions): Promise[]>; readMany(keys: PrimaryKey[], query?: Query, opts?: QueryOptions): Promise[]>; createOne(data: Partial, opts?: MutationOptions): Promise; createMany(data: Partial[], opts?: MutationOptions): Promise; updateByQuery(query: Query, data: Partial, opts?: MutationOptions): Promise; updateOne(key: PrimaryKey, data: Partial, opts?: MutationOptions): Promise; updateMany(keys: PrimaryKey[], data: Partial, opts?: MutationOptions): Promise; upsertOne(payload: Partial, opts?: MutationOptions): Promise; upsertMany(payloads: Partial[], opts?: MutationOptions): Promise; deleteByQuery(query: Query, opts?: MutationOptions): Promise; deleteOne(key: PrimaryKey, opts?: MutationOptions): Promise; deleteMany(keys: PrimaryKey[], opts?: MutationOptions): Promise; }