/** * Taxonomies Operations Module * Handles all taxonomy-related WordPress REST API operations (categories, tags) */ import type { WordPressCategory, WordPressTag, CreateCategoryRequest, UpdateCategoryRequest, CreateTagRequest, UpdateTagRequest } from "../../types/wordpress.js"; /** * Interface for the base client methods needed by taxonomies operations */ export interface TaxonomiesClientBase { get(endpoint: string): Promise; post(endpoint: string, data?: unknown): Promise; put(endpoint: string, data?: unknown): Promise; delete(endpoint: string): Promise; } /** * Taxonomies operations mixin * Provides CRUD operations for WordPress categories and tags */ export declare class TaxonomiesOperations { private client; constructor(client: TaxonomiesClientBase); /** * Get a list of categories with optional filtering */ getCategories(params?: Record): Promise; /** * Get a single category by ID */ getCategory(id: number): Promise; /** * Create a new category */ createCategory(data: CreateCategoryRequest): Promise; /** * Update an existing category */ updateCategory(data: UpdateCategoryRequest): Promise; /** * Delete a category */ deleteCategory(id: number, force?: boolean): Promise<{ deleted: boolean; previous?: WordPressCategory; }>; /** * Get a list of tags with optional filtering */ getTags(params?: Record): Promise; /** * Get a single tag by ID */ getTag(id: number): Promise; /** * Create a new tag */ createTag(data: CreateTagRequest): Promise; /** * Update an existing tag */ updateTag(data: UpdateTagRequest): Promise; /** * Delete a tag */ deleteTag(id: number, force?: boolean): Promise<{ deleted: boolean; previous?: WordPressTag; }>; } //# sourceMappingURL=taxonomies.d.ts.map