/** What a relay or a twin notes; the World's time is added as it is appended. */ type CompletenessNote = { kind: 'egress'; destination: string; outcome: 'refused' | 'passed'; rule?: string; } | { kind: 'unimplemented'; vendor: string; method: string; path: string; operation?: string; } | { kind: 'machine'; layer: string; fault: string; target?: string; } /** a connection to the World's own proxy address that the address refused (the injector's): what was sent there never * reached the World (a proxy stopped under a running app) */ | { kind: 'proxy'; address: string; outcome: 'refused'; rule: string; }; /** One record a run's completeness counted, at its World instant: the grounds of a count, carried beside it. */ export type CompletenessRecord = CompletenessNote & { at: string; }; /** Append one record to the active World's completeness file (the store's own World's, else the one `env` names); a * process outside a World notes nothing. */ export declare function noteCompleteness(env: Record, record: CompletenessNote): void; export type Completeness = { /** zero when the World was the whole internet the run reached */ total: number; egress: Record; unimplemented: Record>; /** machine faults the run placed and no fault door carried, by layer and kind (ADR 0036 §4) */ machine: Record; /** connections the World's own proxy address refused, by address */ proxy: Record; /** each record counted, in the order it was appended: what the totals above are read from (ADR 0036 §8) */ records: CompletenessRecord[]; }; /** How many records the completeness file holds: where a run starts counting. */ export declare function completenessMark(file: string): number; /** What reached past the World after the file's `mark`, counted per destination and per vendor's operation. */ export declare function completenessSince(file: string, mark: number): Completeness; export {};