import { CategoriesApi, CategoryBody, CategoryEntry, CategoryLinkBody, CategoryPaging, ResultSetPaging, SearchApi } from '@alfresco/js-api'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class CategoryService { private readonly apiService; private readonly userPreferencesService; private readonly appConfigService; private _categoriesApi; private _searchApi; get categoriesApi(): CategoriesApi; get searchApi(): SearchApi; /** * Get subcategories of a given parent category * * @param parentCategoryId The identifier of a parent category. * @param skipCount Number of top categories to skip. * @param maxItems Maximum number of subcategories returned from Observable. * @returns Observable */ getSubcategories(parentCategoryId: string, skipCount?: number, maxItems?: number): Observable; /** * Get a category by ID * * @param categoryId The identifier of a category. * @param opts Optional parameters. * @param opts.fields A list of field names. * @param opts.include Returns additional information about the category. The following optional fields can be requested: * count * path * @returns Observable */ getCategory(categoryId: string, opts?: any): Observable; /** * Creates subcategories under category with provided categoryId * * @param parentCategoryId The identifier of a parent category. * @param payload List of categories to be created. * @returns Observable */ createSubcategories(parentCategoryId: string, payload: CategoryBody[]): Observable; /** * Updates category * * @param categoryId The identifier of a category. * @param payload Updated category body * @returns Observable */ updateCategory(categoryId: string, payload: CategoryBody): Observable; /** * Deletes category * * @param categoryId The identifier of a category. * @returns Observable */ deleteCategory(categoryId: string): Observable; /** * Searches categories by their name. * * @param name Value for name which should be used during searching categories. * @param skipCount Specify how many first results should be skipped. Default 0. * @param maxItems Specify max number of returned categories. Default is specified by UserPreferencesService. * @returns Observable Found categories which name contains searched name. */ searchCategories(name: string, skipCount?: number, maxItems?: number): Observable; /** * List of categories that node is assigned to * * @param nodeId The identifier of a node. * @returns Observable Categories that node is assigned to */ getCategoryLinksForNode(nodeId: string): Observable; /** * Unlink category from a node * * @param nodeId The identifier of a node. * @param categoryId The identifier of a category. * @returns Observable */ unlinkNodeFromCategory(nodeId: string, categoryId: string): Observable; /** * Link node to a category * * @param nodeId The identifier of a node. * @param categoryLinkBodyCreate Array of a categories that node will be linked to. * @returns Observable */ linkNodeToCategory(nodeId: string, categoryLinkBodyCreate: CategoryLinkBody[]): Observable; /** * Checks if categories plugin is enabled. * * @returns boolean true if categories plugin is enabled, false otherwise. */ areCategoriesEnabled(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }