/** * WordPress Posts Handler Implementation * * Implements all handler methods for WordPress post management tools. * This module contains the business logic for post operations including * validation, API interaction, and response formatting. */ import { WordPressClient } from "../../client/api.js"; import { CreatePostRequest, PostQueryParams, UpdatePostRequest, WordPressPost } from "../../types/wordpress.js"; export declare function buildListParams(params: PostQueryParams): PostQueryParams; export declare function formatPostsResponse(posts: WordPressPost[], siteUrl: string, sanitizedParams: PostQueryParams, authorMap: Map, categoryMap: Map, tagMap: Map): string; /** * Handles listing WordPress posts with advanced filtering and pagination */ export declare function handleListPosts(client: WordPressClient, params: PostQueryParams): Promise; /** * Handles retrieving a single WordPress post by ID */ export declare function handleGetPost(client: WordPressClient, params: { id: number; include_content?: boolean; }): Promise; /** * Handles creating a new WordPress post */ export declare function handleCreatePost(client: WordPressClient, params: CreatePostRequest): Promise; /** * Handles updating an existing WordPress post */ export declare function handleUpdatePost(client: WordPressClient, params: UpdatePostRequest & { id: number; }): Promise; /** * Handles deleting a WordPress post */ export declare function handleDeletePost(client: WordPressClient, params: { id: number; force?: boolean; }): Promise<{ deleted: boolean; previous?: WordPressPost; } | string>; /** * Handles retrieving post revisions */ export declare function handleGetPostRevisions(client: WordPressClient, params: { id: number; }): Promise; //# sourceMappingURL=PostHandlers.d.ts.map