import type { RetryOptions } from './http-retry.js'; import type { DashboardSyncRequest } from '@auden.to/protocol'; export type PostSyncBatchOptions = { dashboardUrl: string; token: string; payload: DashboardSyncRequest; /** Override fetch for tests. Defaults to globalThis.fetch. */ fetchImpl?: typeof fetch; retryOptions?: RetryOptions; }; export type PostSyncBatchResult = { synced: number; /** Server-advertised "current published version", when this deployment has one configured. */ cliLatest?: string; }; /** * POST one `/api/sync` batch, retrying transport failures and 5xx responses * with backoff (never a 4xx — a bad request or rejected token won't be fixed * by retrying). Throws on a non-2xx response or a body that doesn't match * the `{ synced }` contract, so the caller's existing behaviour of keeping * this batch's queue files on failure is unchanged. */ export declare function postSyncBatch(options: PostSyncBatchOptions): Promise; //# sourceMappingURL=sync-client.d.ts.map