import { type AttachingRun } from './attached.js'; import { type Counter, type CounterConfig, type Finding } from './types.js'; type Read = { findings?: Finding[]; now: number; read: true; recordedCommand?: string; }; export type Outcome = (Read & { cited: () => string[]; }) | { error: string; read: false; }; export type Posted = (Read & { cited: string[]; }) | (Read & { citedError: string; }) | { error: string; read: false; }; export declare const posted: (outcome: Outcome) => Posted; export declare const received: (sent: Posted) => Outcome; export declare const sharing: () => ((okExits: readonly number[], run: AttachingRun) => AttachingRun); export declare const measureEntry: ({ counter, cwd, entry, key, okExits, once, peers }: { counter: Counter; cwd: string; entry: CounterConfig; key: string; okExits: readonly number[]; once: ReturnType; peers: readonly CounterConfig[]; }) => Promise; export {};