import type { H3Event } from 'h3'; export type { BuildMeta, IndexNowSubmitResult, PageHashMeta } from './indexnow-shared.js'; export interface IndexNowResult { success: boolean; submitted: number; remaining: number; error?: string; backoff?: boolean; } /** * Submit URLs to IndexNow API with fallback on rate limit * Wrapper around shared implementation with runtime-specific fetch */ export declare function submitToIndexNow(routes: string[], config: { key: string; }, siteUrl: string): Promise<{ success: boolean; error?: string; host?: string; }>; export interface SyncToIndexNowOptions { /** Use waitUntil for background DB updates (default: false in cron, true otherwise) */ useWaitUntil?: boolean; } /** * Submit pending pages to IndexNow * Queries DB for pages needing sync, submits, marks as synced * Implements exponential backoff on 429 rate limit errors */ export declare function syncToIndexNow(event: H3Event | undefined, limit?: number, options?: SyncToIndexNowOptions): Promise;