import type { LocalFlatSqlPinLedgerEntry } from './local-flatsql'; export interface PublishedSegmentForSync { cid?: string | null; rowCount?: number | null; index?: number | null; byteCount?: number | null; } export interface PublishedSegmentSyncItem { segment: T; cumulativeRows: number; segmentEnd: number; skipRecords: 0; } export interface PublishedSegmentMaterializedRowCountInput { cid?: string | null; standardId: string; expectedRows?: number | null; materializedRows: number; } export interface PublishedSegmentCheckpointInput { unpersistedBytes: number; checkpointBytes: number; completedRows: number; totalRows: number; } export interface PublishedSnapshotResetInput { retentionPolicy?: string | null; localRows: number; completedRows: number; totalRows: number; } export interface PublishedSnapshotProbeStartStatusInput { hasPublishedManifest: boolean; currentStatus?: string | null; } export interface PublishedSegmentBatchOptions { maxBatchBytes: number; maxBatchSegments: number; } export interface PublishedSegmentBatchItem { items: Array>; byteCount: number; preferredSourceIndex: number; } export interface PublishedSegmentRetentionOptions { retentionPolicy?: string | null; manifestHead?: string | null; } export declare function pendingPublishedSegmentItems(segments: T[], completedCids: ReadonlySet): Array>; export declare function completedPublishedSegmentCids(entries: LocalFlatSqlPinLedgerEntry[]): Set; export declare function completedPublishedRowsForSegments(segments: T[], completedCids: ReadonlySet): number; export declare function assertPublishedSegmentMaterializedRowCount(input: PublishedSegmentMaterializedRowCountInput): void; export declare function shouldPersistPublishedSegmentCheckpoint(input: PublishedSegmentCheckpointInput): boolean; export declare function shouldResetPublishedSnapshotStore(input: PublishedSnapshotResetInput): boolean; export declare function publishedSnapshotProbeStartStatus(input: PublishedSnapshotProbeStartStatusInput): 'synced' | 'syncing'; export declare function publishedSegmentsForRetention(segments: T[], options: PublishedSegmentRetentionOptions): T[]; export declare function publishedSegmentBatchItems(items: Array>, options: PublishedSegmentBatchOptions): Array>; //# sourceMappingURL=published-segment-sync.d.ts.map