import Resource from './resource'; import RoleRepresentation from '../defs/roleRepresentation'; import UserRepresentation from '../defs/userRepresentation'; import { KeycloakAdminClient } from '../client'; export declare class Roles extends Resource<{ realm?: string; }> { find: (payload?: { realm?: string; }) => Promise; create: (payload?: RoleRepresentation & { realm?: string; }) => Promise<{ roleName: string; }>; findOneByName: (payload?: { name: string; } & { realm?: string; }) => Promise; updateByName: (query: { name: string; } & { realm?: string; }, payload: RoleRepresentation) => Promise; delByName: (payload?: { name: string; } & { realm?: string; }) => Promise; findUsersWithRole: (payload?: { name: string; first?: number; max?: number; } & { realm?: string; }) => Promise; findOneById: (payload?: { id: string; } & { realm?: string; }) => Promise; createComposite: (query: { roleId: string; } & { realm?: string; }, payload: RoleRepresentation[]) => Promise; getCompositeRoles: (payload?: { id: string; } & { realm?: string; }) => Promise; getCompositeRolesForRealm: (payload?: { id: string; } & { realm?: string; }) => Promise; getCompositeRolesForClient: (payload?: { id: string; clientId: string; } & { realm?: string; }) => Promise; delCompositeRoles: (query: { id: string; } & { realm?: string; }, payload: RoleRepresentation[]) => Promise; updateById: (query: { id: string; } & { realm?: string; }, payload: RoleRepresentation) => Promise; delById: (payload?: { id: string; } & { realm?: string; }) => Promise; constructor(client: KeycloakAdminClient); }