import { Nullable, NullableResultPromise } from "../base-types"; import { IExtendedContentHubClient } from "./extended-client"; export interface IPermissionsClient { /** * Gets the specified entity permissions. * * @param id - The id of the entity * @param userId - The id of the user */ getPermissionsAsync(id: number, userId?: Nullable): NullableResultPromise>; } export declare class PermissionsClient implements IPermissionsClient { protected readonly _client: IExtendedContentHubClient; constructor(client: IExtendedContentHubClient); getPermissionsAsync(id: number, userId?: number): NullableResultPromise>; }