import type { errors } from '@strapi/utils'; import { Permission } from './shared'; /** * GET /permission - List all permissions */ export declare namespace GetAll { export interface Request { query: {}; body: {}; } export interface Response { data: { conditions: { id: string; displayName: string; category: string; }; sections: Record; }; error?: errors.ApplicationError; } } /** * POST /permission/check - Check if the current user has the given permissions */ export declare namespace Check { export interface Request { query: {}; body: { permissions: (Pick & { field?: string })[]; }; } export interface Response { data: boolean[]; error?: errors.ApplicationError | errors.YupValidationError; } }