mirror of
https://github.com/morluto/rea.git
synced 2026-10-30 03:15:54 +00:00
18 lines
721 B
TypeScript
18 lines
721 B
TypeScript
import type { AppConfig } from "../config/types.js";
|
|
import type { parseConfig } from "../config/parseConfig.js";
|
|
import type { Logger } from "pino";
|
|
import type { BinarySession } from "./binary/BinarySession.js";
|
|
|
|
/** Configuration and one-shot session factories supplied by the production boundary. */
|
|
export interface DirectAnalysisDependencies {
|
|
/** Read the caller-selected configuration without consulting ambient state. */
|
|
readonly readConfiguration: () => ReturnType<typeof parseConfig>;
|
|
readonly createBinarySession: (
|
|
config: AppConfig,
|
|
logger: Logger,
|
|
) => BinarySession | Promise<BinarySession>;
|
|
readonly createManagedBinarySession: () =>
|
|
| BinarySession
|
|
| Promise<BinarySession>;
|
|
}
|