import { ProvenClaim } from "./claim"; export declare type FirstAddress = string; export declare type LastAddress = string; export declare type AddressChunks = { [address: FirstAddress]: LastAddress; }; export declare type ClaimChunk = Record; export declare type ClaimChunks = Record; export interface StringifiedProvenClaim { type: string; amount: string; index: number; proof: string[]; } export interface SplitClaims { addressChunks: AddressChunks; claimChunks: ClaimChunks; } /** * Splits the input claims into cohorts of approximatively the same byte size. * Each cohort is identified by the first (lexicographically sorted) address * in the cohort. A separate entry links the first address to the last address * of the cohort. * * @param claims The claims to split in distinct chuncks. * @param maxCohortSize The appriximate maximum size of a cohort in number of * users. */ export declare function splitClaims(claims: ProvenClaim[], desiredCohortSize?: number): Generator<[[FirstAddress, LastAddress], ClaimChunk], void, undefined>; export declare function splitClaimsAndSaveToFolder(claims: ProvenClaim[], path: string): Promise; export declare function removeSplitClaimFiles(path: string): Promise;