import { type AbortRejectionGuardLogger, type AbortRejectionProcessTarget } from "./abort-rejection-guard.js"; /** Context for agent service trace. */ export type AgentServiceTraceContext = { traceId?: string; spanId?: string; }; /** Public API contract for agent service trace context getter. */ export type AgentServiceTraceContextGetter = () => AgentServiceTraceContext; /** Public API contract for agent service bootstrap exit. */ export type AgentServiceBootstrapExit = (code: number) => never | void; /** Options accepted by bootstrap agent service. */ export type BootstrapAgentServiceOptions = { loadLogger?: () => AbortRejectionGuardLogger | Promise; initializeApplicationErrors?: () => void | Promise; initializeTelemetry?: () => boolean | Promise; onTelemetryInitialized?: () => void | Promise; getTraceContext?: AgentServiceTraceContextGetter; registerTraceContextGetter?: (getter: AgentServiceTraceContextGetter) => void | Promise; start: () => void | Promise; }; /** Options accepted by run agent service main. */ export type RunAgentServiceMainOptions = BootstrapAgentServiceOptions & { onStartupError?: (error: unknown) => void | Promise; onFinally?: () => void | Promise; exit?: AgentServiceBootstrapExit; processTarget?: AbortRejectionProcessTarget | null; }; /** Bootstrap agent service helper. */ export declare function bootstrapAgentService(options: BootstrapAgentServiceOptions): Promise; /** Run agent service main. */ export declare function runAgentServiceMain(options: RunAgentServiceMainOptions): Promise; //# sourceMappingURL=bootstrap.d.ts.map