import { Privilege } from '@bringg/types';
import Session from '../Services/Identity/Session';
import type { AddPrivilegePayload, PrivilegeGetListResponse } from './Privilege.consts';
export type { AddPrivilegePayload, PrivilegeGetListResponse };
export default class PrivilegesApi {
    private privilegeEntity;
    private privilegeService;
    constructor(session: Session);
    getAll(): Promise<Privilege[]>;
    getById(id: number): Promise<Privilege>;
    create(payload: AddPrivilegePayload): Promise<{
        success: boolean;
        privilege: Privilege;
    }>;
    getList(): Promise<PrivilegeGetListResponse['privileges']>;
    update(id: number, payload: AddPrivilegePayload): Promise<{
        success: boolean;
        privilege: Privilege;
    }>;
}
