import type { FlatSqlSyncManifest, FlatSqlSyncManifestArtifactBundle, FlatSqlSyncManifestSegment } from '../../flatsql-sync'; import type { RawDataRecord } from './sdn-backend'; export interface PublishedFlatSqlSegmentInput { schema: string; providerPeerId: string; cid: string; indexCid?: string; shardSha256?: string; fetchAttempts?: number; retryDelayMs?: number; fetchCidBytes(cid: string): Promise; } export interface TimedPublishedFlatSqlSegment { streamBytes: Uint8Array; networkTransferMs: number; verificationMs: number; } export interface PublishedFlatSqlShardCarImportInput { cid: string; sha256?: string; fetchCidBytes(cid: string): Promise; importCarBytes(bytes: Uint8Array): Promise; } export interface FetchCidBytesFromGatewayOptions { timeoutMs?: number; fetch?: typeof fetch; } export interface TimedPublishedFlatSqlShardCarImport { cid: string; byteLength: number; networkTransferMs: number; verificationMs: number; importMs: number; } export declare function flatBufferStreamFromPublishedFlatSqlSegment(input: PublishedFlatSqlSegmentInput): Promise; export declare function timedFlatBufferStreamFromPublishedFlatSqlSegment(input: PublishedFlatSqlSegmentInput): Promise; export declare function importPublishedFlatSqlShardCar(input: PublishedFlatSqlShardCarImportInput): Promise; export declare function publishedShardGroupCarBundlesForSegments(manifest: Pick, segments: FlatSqlSyncManifestSegment[], localRows: number): FlatSqlSyncManifestArtifactBundle[]; export declare function publishedSegmentIndexesCoveredByBundles(bundles: Pick[]): Set; export declare function importCarBytesToKubo(ipfsApiUrl: string, carBytes: Uint8Array): Promise; export declare function rawRecordsFromPublishedFlatSqlSegment(input: PublishedFlatSqlSegmentInput): Promise; export declare function fetchCidBytesFromGateway(gatewayUrl: string, cid: string, options?: FetchCidBytesFromGatewayOptions): Promise; //# sourceMappingURL=published-flatbuffer-shard.d.ts.map