/** * Backend API client */ import type { ClientResponse, URLsResponse, QueriesResponse } from '../types/api.js'; export declare class APIClient { private client; constructor(); /** * Get client by domain */ getClientByDomain(domain: string): Promise; /** * Get client by ID */ getClient(clientId: string): Promise; /** * Get client profile by client ID */ getClientProfile(clientId: string): Promise; /** * Get URLs for a site */ getSiteUrls(siteId: string, filters?: { status?: 'active' | 'removed'; limit?: number; offset?: number; }): Promise; /** * Get GSC queries for a URL */ getUrlQueries(urlId: string, params?: { start_date?: string; end_date?: string; days?: number; limit?: number; }): Promise; /** * Get GSC queries for a site */ getSiteQueries(siteId: string, params?: { start_date?: string; end_date?: string; limit?: number; }): Promise; /** * Trigger site analysis */ triggerSiteAnalysis(clientId: string): Promise<{ success: boolean; summary: { total_urls: number; urls_checked: number; issues_found: number; critical_issues: number; warnings: number; duration: number; }; }>; /** * Get site health score (will need to be implemented in backend) */ getSiteHealthScore(siteId: string): Promise<{ score: number; grade: 'A' | 'B' | 'C' | 'D' | 'F'; breakdown: any; }>; /** * Fallback health score calculation (basic) */ private calculateBasicHealthScore; /** * Get issues for a site (real-time detection from current URL state) */ getSiteIssues(siteId: string, options?: { severity?: 'critical' | 'warning' | 'info'; }): Promise<{ issues: any[]; summary: { total: number; critical: number; warning: number; info: number; }; }>; /** * Get comprehensive site statistics (new unified endpoint) */ getSiteStats(siteId: string): Promise; /** * Resolve a siteId and clientId from either a project_id or domain. * All tools should use this instead of implementing their own resolution logic. */ resolveSiteAndClient(opts: { projectId?: string; domain?: string; }): Promise<{ siteId: string; clientId: string; domain?: string; } | { error: string; }>; /** * Generic GET request */ get(path: string, options?: { params?: any; }): Promise; /** * Generic POST request */ post(path: string, body?: any): Promise; /** * Generic PATCH request */ patch(path: string, body?: any): Promise; } export declare const apiClient: APIClient; //# sourceMappingURL=api-client.d.ts.map