import { ApiSite, ApiSitemap, Site } from "../core/types.mjs"; import { GoogleSearchConsoleClient } from "../core/client.mjs"; interface FetchSitesWithSitemapsOptions { /** Maximum concurrent sitemap-list requests. Defaults to 4. */ concurrency?: number; } /** * Fetches all sites the authenticated user has access to in Google Search Console. */ declare function fetchSites(client: GoogleSearchConsoleClient): Promise; /** * Fetches all verified sites with their sitemaps from Google Search Console. */ declare function fetchSitesWithSitemaps(client: GoogleSearchConsoleClient, options?: FetchSitesWithSitemapsOptions): Promise<(Site & { sitemaps: ApiSitemap[]; })[]>; /** * Fetches all sitemaps for a site. */ declare function fetchSitemaps(client: GoogleSearchConsoleClient, siteUrl: string): Promise; /** * Fetches a specific sitemap. */ declare function fetchSitemap(client: GoogleSearchConsoleClient, siteUrl: string, feedpath: string): Promise; /** * Submits a sitemap to Google Search Console. */ declare function submitSitemap(client: GoogleSearchConsoleClient, siteUrl: string, feedpath: string): Promise; /** * Deletes a sitemap from Google Search Console. */ declare function deleteSitemap(client: GoogleSearchConsoleClient, siteUrl: string, feedpath: string): Promise; /** * Add a property to the user's Search Console account. * * Note: this only registers the property in an unverified state. Ownership * must be proven via the Site Verification API (see `verifySite`) before any * data is accessible. */ declare function addSite(client: GoogleSearchConsoleClient, siteUrl: string): Promise; /** * Remove a property from the user's Search Console account. */ declare function deleteSite(client: GoogleSearchConsoleClient, siteUrl: string): Promise; export { FetchSitesWithSitemapsOptions, addSite, deleteSite, deleteSitemap, fetchSitemap, fetchSitemaps, fetchSites, fetchSitesWithSitemaps, submitSitemap };