/**
 * Copyright (c) OpenLens Maintainers. All rights reserved.
 * Licensed under MIT License. See LICENSE in root directory for more information.
 */
import type { AuthorizationV1Api, V1ResourceAttributes } from "@kubernetes/client-node";
/**
 * Requests the permissions for actions on the kube cluster
 * @param resourceAttributes The descriptor of the action that is desired to be known if it is allowed
 * @returns `true` if the actions described are allowed
 */
export type CanI = (resourceAttributes: V1ResourceAttributes) => Promise<boolean>;
export type CreateCanI = (api: AuthorizationV1Api) => CanI;
declare const createCanIInjectable: import("@ogre-tools/injectable").Injectable<CreateCanI, unknown, void>;
export default createCanIInjectable;
