export {
  createCredentialsBackedAuthorize,
  hashGrants,
  runWorkflowChild,
  type ChildStepInvoker,
  type CredentialsSnapshotRef,
  type CredentialWiring,
  type DrainController,
  type GrantEvaluator,
  type RunWorkflowChildBindings,
  type RunWorkflowChildOpts,
  type RunWorkflowChildResult,
  type SourcesSnapshotRef,
  type SubstrateWriteResponseSink,
} from "./run-child";

export {
  createChildSubstrateWriteBridge,
  type ChildSubstrateWriteBridge,
  type CreateChildSubstrateWriteBridgeOpts,
  type SubstrateWriteRequest,
} from "./substrate-write-bridge";

export {
  createChildOutboundMailBridge,
  type ChildOutboundMailBridge,
  type CreateChildOutboundMailBridgeOpts,
} from "./outbound-mail-bridge";

export { createSupervisorBackedTransport } from "./supervisor-backed-transport";

export {
  createProxyWorkflowRunRepoStore,
  type CreateProxyWorkflowRunRepoStoreOpts,
} from "./proxy-repo-store";

export { parseSpawnTimeEnv, type SpawnTimeEnv } from "./env-bootstrap";

export {
  discoverInFlightRuns,
  type DiscoverRunsOpts,
  type DiscoveredRun,
} from "./self-discovery";

export type { LoadParkedApproval } from "./parked-correlations";

export {
  createWarmAgentCache,
  type WarmAgentCache,
  type WarmEventSinkRef,
} from "./warm-agent-cache";

export {
  EVENT_CHANNEL_FD,
  runWorkflowChildFromProcessEnv,
  type RunWorkflowChildFromProcessEnvOpts,
  type SubstrateFactory,
  type SubstrateFactoryEnv,
} from "./from-process-env";
