import { z } from "zod"; export declare const ConnectedSyncCoveragePublishSchema: z.ZodObject<{ id: z.ZodString; expectedRevision: z.ZodNumber; manifest: z.ZodObject<{ schemaVersion: z.ZodLiteral<"openpond.collectorCoverageManifest.v1">; jobId: z.ZodString; connectionId: z.ZodString; connectionRevision: z.ZodNumber; machineId: z.ZodString; sourceInstanceId: z.ZodString; from: z.ZodNullable; to: z.ZodISODateTime; startedAt: z.ZodISODateTime; finishedAt: z.ZodNullable; listingComplete: z.ZodBoolean; pendingOperations: z.ZodNumber; sessions: z.ZodArray; state: z.ZodEnum<{ admitted: "admitted"; failed: "failed"; reading: "reading"; skipped: "skipped"; }>; reason: z.ZodNullable>; unknownTimeBoundaries: z.ZodNumber; normalized: z.ZodArray>; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>; export declare const ConnectedSyncCoverageReadSchema: z.ZodObject<{ id: z.ZodString; cutoff: z.ZodOptional; }, z.core.$strict>; export declare const ConnectedSyncCoverageReceiptSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"openpond.connectedSyncCoverageReceipt.v1">; id: z.ZodString; teamId: z.ZodString; ownerUserId: z.ZodString; connectionId: z.ZodString; connectionRevision: z.ZodNumber; receivedAt: z.ZodISODateTime; summary: z.ZodObject<{ jobId: z.ZodString; manifestHash: z.ZodString; sourceInventoryHash: z.ZodString; eligibleBoundaryHash: z.ZodString; from: z.ZodNullable; to: z.ZodISODateTime; finishedAt: z.ZodNullable; conversations: z.ZodNumber; eligibleTurns: z.ZodNumber; admittedSessions: z.ZodNumber; skippedSessions: z.ZodNumber; failedSessions: z.ZodNumber; unknownTimeBoundaries: z.ZodNumber; pendingOperations: z.ZodNumber; listingComplete: z.ZodBoolean; complete: z.ZodBoolean; }, z.core.$strict>; }, z.core.$strict>; export declare const ConnectedSyncRegistrationSchema: z.ZodObject<{ id: z.ZodString; source: z.ZodEnum<{ claude_code: "claude_code"; codex: "codex"; grok_build: "grok_build"; hermes: "hermes"; oh_my_pi: "oh_my_pi"; openclaw: "openclaw"; opencode: "opencode"; pi: "pi"; }>; machineId: z.ZodString; sourceInstanceId: z.ZodString; sourceLabel: z.ZodString; sourceRoot: z.ZodString; destination: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"existing">; projectId: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"new">; name: z.ZodString; }, z.core.$strict>], "kind">; since: z.ZodNullable; keepSyncing: z.ZodBoolean; expectedRevision: z.ZodNumber; }, z.core.$strict>; export declare const ConnectedSyncControlSchema: z.ZodObject<{ id: z.ZodString; expectedRevision: z.ZodNumber; action: z.ZodEnum<{ disconnect: "disconnect"; pause: "pause"; resume: "resume"; }>; }, z.core.$strict>; export declare const ConnectedSyncRequestSchema: z.ZodObject<{ id: z.ZodString; operationId: z.ZodString; expectedRevision: z.ZodNumber; }, z.core.$strict>; export declare const ConnectedSyncHeartbeatSchema: z.ZodObject<{ id: z.ZodString; expectedRevision: z.ZodNumber; pendingOperations: z.ZodNumber; error: z.ZodNullable; completedSyncRevision: z.ZodDefault; }, z.core.$strict>; export declare const ConnectedSyncConnectionSchema: z.ZodObject<{ teamId: z.ZodString; id: z.ZodString; revision: z.ZodNumber; source: z.ZodEnum<{ claude_code: "claude_code"; codex: "codex"; grok_build: "grok_build"; hermes: "hermes"; oh_my_pi: "oh_my_pi"; openclaw: "openclaw"; opencode: "opencode"; pi: "pi"; }>; sourceLabel: z.ZodString; sourceRoot: z.ZodString; taskDatasetId: z.ZodNullable; conversationDatasetId: z.ZodNullable; machineId: z.ZodString; sourceInstanceId: z.ZodString; projectId: z.ZodString; datasetIds: z.ZodArray; since: z.ZodNullable; keepSyncing: z.ZodBoolean; state: z.ZodEnum<{ active: "active"; disconnected: "disconnected"; paused: "paused"; }>; health: z.ZodEnum<{ offline: "offline"; online: "online"; }>; lastHeartbeatAt: z.ZodNullable; lastAdmissionAt: z.ZodNullable; pendingOperations: z.ZodNumber; admittedTasks: z.ZodNumber; error: z.ZodNullable; requestedSyncRevision: z.ZodDefault; completedSyncRevision: z.ZodDefault; syncRequestedAt: z.ZodDefault>; syncCompletedAt: z.ZodDefault>; }, z.core.$strict>; export declare const ConnectedSyncCommitSchema: z.ZodObject<{ connectionId: z.ZodString; expectedRevision: z.ZodNumber; request: z.ZodObject<{ upload: z.ZodObject<{ hash: z.ZodString; parts: z.ZodNumber; }, z.core.$strict>; source: z.ZodEnum<{ claude_code: "claude_code"; codex: "codex"; grok_build: "grok_build"; hermes: "hermes"; oh_my_pi: "oh_my_pi"; openclaw: "openclaw"; opencode: "opencode"; pi: "pi"; }>; branchLeafId: z.ZodOptional; acquisition: z.ZodOptional>; destination: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"existing">; projectId: z.ZodString; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"new">; name: z.ZodString; }, z.core.$strict>], "kind">; operationId: z.ZodString; previewHash: z.ZodString; selection: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>; export type ConnectedSyncConnection = z.infer; export declare class ConnectedSyncClient { private readonly options; constructor(options: { apiKey: string; baseUrl: string; teamId: string; fetch?: typeof fetch; }); list(signal?: AbortSignal): Promise<{ teamId: string; items: { teamId: string; id: string; revision: number; source: "claude_code" | "codex" | "grok_build" | "hermes" | "oh_my_pi" | "openclaw" | "opencode" | "pi"; sourceLabel: string; sourceRoot: string; taskDatasetId: string | null; conversationDatasetId: string | null; machineId: string; sourceInstanceId: string; projectId: string; datasetIds: string[]; since: string | null; keepSyncing: boolean; state: "active" | "disconnected" | "paused"; health: "offline" | "online"; lastHeartbeatAt: string | null; lastAdmissionAt: string | null; pendingOperations: number; admittedTasks: number; error: string | null; requestedSyncRevision: number; completedSyncRevision: number; syncRequestedAt: string | null; syncCompletedAt: string | null; }[]; }>; register(raw: z.input, signal?: AbortSignal): Promise<{ teamId: string; id: string; revision: number; source: "claude_code" | "codex" | "grok_build" | "hermes" | "oh_my_pi" | "openclaw" | "opencode" | "pi"; sourceLabel: string; sourceRoot: string; taskDatasetId: string | null; conversationDatasetId: string | null; machineId: string; sourceInstanceId: string; projectId: string; datasetIds: string[]; since: string | null; keepSyncing: boolean; state: "active" | "disconnected" | "paused"; health: "offline" | "online"; lastHeartbeatAt: string | null; lastAdmissionAt: string | null; pendingOperations: number; admittedTasks: number; error: string | null; requestedSyncRevision: number; completedSyncRevision: number; syncRequestedAt: string | null; syncCompletedAt: string | null; }>; control(raw: z.input, signal?: AbortSignal): Promise<{ teamId: string; id: string; revision: number; source: "claude_code" | "codex" | "grok_build" | "hermes" | "oh_my_pi" | "openclaw" | "opencode" | "pi"; sourceLabel: string; sourceRoot: string; taskDatasetId: string | null; conversationDatasetId: string | null; machineId: string; sourceInstanceId: string; projectId: string; datasetIds: string[]; since: string | null; keepSyncing: boolean; state: "active" | "disconnected" | "paused"; health: "offline" | "online"; lastHeartbeatAt: string | null; lastAdmissionAt: string | null; pendingOperations: number; admittedTasks: number; error: string | null; requestedSyncRevision: number; completedSyncRevision: number; syncRequestedAt: string | null; syncCompletedAt: string | null; }>; heartbeat(raw: z.input, signal?: AbortSignal): Promise<{ teamId: string; id: string; revision: number; source: "claude_code" | "codex" | "grok_build" | "hermes" | "oh_my_pi" | "openclaw" | "opencode" | "pi"; sourceLabel: string; sourceRoot: string; taskDatasetId: string | null; conversationDatasetId: string | null; machineId: string; sourceInstanceId: string; projectId: string; datasetIds: string[]; since: string | null; keepSyncing: boolean; state: "active" | "disconnected" | "paused"; health: "offline" | "online"; lastHeartbeatAt: string | null; lastAdmissionAt: string | null; pendingOperations: number; admittedTasks: number; error: string | null; requestedSyncRevision: number; completedSyncRevision: number; syncRequestedAt: string | null; syncCompletedAt: string | null; }>; requestSync(raw: z.input, signal?: AbortSignal): Promise<{ teamId: string; id: string; revision: number; source: "claude_code" | "codex" | "grok_build" | "hermes" | "oh_my_pi" | "openclaw" | "opencode" | "pi"; sourceLabel: string; sourceRoot: string; taskDatasetId: string | null; conversationDatasetId: string | null; machineId: string; sourceInstanceId: string; projectId: string; datasetIds: string[]; since: string | null; keepSyncing: boolean; state: "active" | "disconnected" | "paused"; health: "offline" | "online"; lastHeartbeatAt: string | null; lastAdmissionAt: string | null; pendingOperations: number; admittedTasks: number; error: string | null; requestedSyncRevision: number; completedSyncRevision: number; syncRequestedAt: string | null; syncCompletedAt: string | null; }>; commit(raw: z.input, signal?: AbortSignal): Promise; publishCoverage(raw: z.input, signal?: AbortSignal): Promise<{ schemaVersion: "openpond.connectedSyncCoverageReceipt.v1"; id: string; teamId: string; ownerUserId: string; connectionId: string; connectionRevision: number; receivedAt: string; summary: { jobId: string; manifestHash: string; sourceInventoryHash: string; eligibleBoundaryHash: string; from: string | null; to: string; finishedAt: string | null; conversations: number; eligibleTurns: number; admittedSessions: number; skippedSessions: number; failedSessions: number; unknownTimeBoundaries: number; pendingOperations: number; listingComplete: boolean; complete: boolean; }; }>; readCoverage(raw: z.input, signal?: AbortSignal): Promise<{ schemaVersion: "openpond.connectedSyncCoverageReceipt.v1"; id: string; teamId: string; ownerUserId: string; connectionId: string; connectionRevision: number; receivedAt: string; summary: { jobId: string; manifestHash: string; sourceInventoryHash: string; eligibleBoundaryHash: string; from: string | null; to: string; finishedAt: string | null; conversations: number; eligibleTurns: number; admittedSessions: number; skippedSessions: number; failedSessions: number; unknownTimeBoundaries: number; pendingOperations: number; listingComplete: boolean; complete: boolean; }; } | null>; private coverageReceipt; private connection; private request; } //# sourceMappingURL=connected-sync.d.ts.map