type OwnedSessionTranscriptWriteContext = { sessionFile?: string; sessionKey?: string; withSessionWriteLock: (run: () => Promise | T, options?: { publishOwnedWrite?: boolean; }) => Promise; }; export declare function withOwnedSessionTranscriptWrites(context: OwnedSessionTranscriptWriteContext, run: () => Promise): Promise; export declare function bindOwnedSessionTranscriptWrites(context: OwnedSessionTranscriptWriteContext, run: (...args: TArgs) => TResult): (...args: TArgs) => TResult; export declare function runWithOwnedSessionTranscriptWriteLock(params: { sessionFile?: string; sessionKey?: string; }, run: () => Promise | T): Promise; export declare function runWithOwnedSessionTranscriptWritePublication(params: { sessionFile?: string; sessionKey?: string; }, run: () => Promise | T): Promise; export declare function resolveOwnedSessionTranscriptWriteLockRunner(params: { sessionFile?: string; sessionKey?: string; }): OwnedSessionTranscriptWriteContext["withSessionWriteLock"] | undefined; export {};