import { MappedThread, Thread } from '../thread.ts'; import { PartialBy } from '../types/typescript-utils.ts'; import { ApplogForInsert, ApplogForInsertOptionalAgent, ApplogNoCid, AgentHash, CidString, Timestamp } from './datom-types.ts'; export declare function ensureTsPvAndFinalizeApplogs(appLogsToInsert: ApplogForInsert[], threadForPv: Thread): Readonly<{ cid: CidString; at: import("./datom-types.ts").Attribute; pv: CidString | null; ts: Timestamp; ag: AgentHash; en: import("./datom-types.ts").EntityID; vl: import("./datom-types.ts").ApplogValue; }>[]; export declare function ensureTsPvAndFinalizeApplog(applogToInsert: ApplogForInsert, threadForPv: Thread): Readonly<{ cid: CidString; at: import("./datom-types.ts").Attribute; pv: CidString | null; ts: Timestamp; ag: AgentHash; en: import("./datom-types.ts").EntityID; vl: import("./datom-types.ts").ApplogValue; }>; export declare function finalizeApplogForInsert(log: ApplogForInsert, { ts, threadForPv }?: { ts?: string; threadForPv?: Thread; }): Readonly<{ cid: CidString; at: import("./datom-types.ts").Attribute; pv: CidString | null; ts: Timestamp; ag: AgentHash; en: import("./datom-types.ts").EntityID; vl: import("./datom-types.ts").ApplogValue; }>; export declare function hasAg(log: ApplogForInsertOptionalAgent): log is ApplogForInsert; export declare function hasTs(log: ApplogForInsert): log is Omit & { ts: Timestamp; }; export declare function hasPv(log: ApplogForInsert): log is ApplogForInsert & { pv: string; }; export declare function withTs(log: ApplogForInsert, ts: Timestamp): Omit & { ts: Timestamp; }; export declare function withAg(log: ApplogForInsertOptionalAgent, ag: AgentHash): ApplogForInsert; export declare function withPvFrom(log: PartialBy, thread: Thread | null): ApplogNoCid; export declare function joinThreads(threads: ReadonlyArray): MappedThread; //# sourceMappingURL=applog-helpers.d.ts.map