import { type PartitionResult } from '@cratis/chronicle.contracts'; import type { PartitionOutcome } from './PartitionOutcome.js'; import type { PartitionProblem } from './PartitionProblem.js'; /** Sequence number reported when no event of a partition was observed successfully. */ export declare const SEQUENCE_NUMBER_UNAVAILABLE = 4294967295n; /** * Creates a {@link PartitionProblem} for a failure. * @param partition - The partition. * @param at - The sequence number of the event it failed at. * @param error - What went wrong. * @returns The {@link PartitionProblem}. */ export declare function failedAt(partition: string, at: bigint, error: unknown): PartitionProblem; /** * Settles a partition: it succeeds when no method reported a problem for it, and otherwise settles at its earliest problem. * Events before that problem count as observed. * @param partition - The partition. * @param sequenceNumbers - The sequence numbers of the partition's events, in order. * @param problems - The problems reported by any method, for any partition. * @returns The {@link PartitionOutcome}. */ export declare function settlePartition(partition: string, sequenceNumbers: readonly bigint[], problems: readonly PartitionProblem[]): PartitionOutcome; /** * Converts a {@link PartitionOutcome} to the {@link PartitionResult} sent to the kernel. * @param outcome - The outcome. * @returns The {@link PartitionResult}. */ export declare function toPartitionResult(outcome: PartitionOutcome): PartitionResult; //# sourceMappingURL=PartitionSettlement.d.ts.map