/** * Site Operations Module * Handles site management, settings, and application passwords */ import type { WordPressSiteSettings, WordPressSiteInfo, WordPressApplicationPassword, WordPressSearchResult } from "../../types/wordpress.js"; /** * Interface for the base client methods needed by site operations */ export interface SiteClientBase { get(endpoint: string): Promise; post(endpoint: string, data?: unknown): Promise; delete(endpoint: string): Promise; } /** * Site operations mixin * Provides operations for WordPress site settings, info, and application passwords */ export declare class SiteOperations { private client; constructor(client: SiteClientBase); /** * Get site settings */ getSiteSettings(): Promise; /** * Update site settings */ updateSiteSettings(settings: Partial): Promise; /** * Get site info (root endpoint) */ getSiteInfo(): Promise; /** * Get application passwords for a user */ getApplicationPasswords(userId?: number | "me"): Promise; /** * Create an application password for a user */ createApplicationPassword(userId: number | "me", name: string, appId?: string): Promise; /** * Delete an application password */ deleteApplicationPassword(userId: number | "me", uuid: string): Promise<{ deleted: boolean; }>; /** * Search across WordPress content */ search(query: string, types?: string[], subtype?: string): Promise; /** * Ping the site to check availability */ ping(): Promise; /** * Get server info */ getServerInfo(): Promise>; } //# sourceMappingURL=site.d.ts.map