import { AttributeValueMatch } from "../types"; import OperationProcessor from "../processors/operation-processor"; import Resource from "../resource"; import ApplicationInstance from "../application-instance"; /** * This decorator is responsible of checking if there's a user in the API's * context object. If there is, it'll allow the operation to continue. * If not, it'll throw an `Unauthorized` error code. */ export default function authorize(...conditions: AttributeValueMatch[]): (target: Function | OperationProcessor, propertyKey?: string, descriptor?: TypedPropertyDescriptor) => any; export declare function canAccessResource(resource: Resource, operationName: string, appInstance: ApplicationInstance): Promise;