import type { ProcessJobOperator } from "@mono-agent/agent-contracts"; import type { TuiAdapterConfig, TuiAdapterOptions, TuiAdapterStartResult } from "@mono-agent/operator-adapter"; import type { DiscoveredLocalModel, LocalProviderDefinition } from "@mono-agent/runtime-adapter"; import { deliverWebNotification } from "@mono-agent/web"; import type { ChannelDriver, ChannelStartInput, RunningChannel } from "../channels.js"; import type { CronOperatorRegistry } from "../cron-operator-service.js"; export interface TuiChannelOverrides { readonly adapterFactory?: (options: TuiAdapterOptions) => Promise; /** Test seam: replaces the real local-provider model discovery call. */ readonly discoverModels?: (providers: readonly LocalProviderDefinition[] | undefined) => Promise; /** Test/embedding seam for the owner-private local web ingress. */ readonly deliverNotification?: typeof deliverWebNotification; } /** * Start only a driver created by this module with app-owner capabilities. The * private symbol plus exact object identity prevents a plugin or arbitrary * driver named `tui` from opting into the owner path. */ export declare function startAppOwnedTuiChannel(driver: ChannelDriver, input: ChannelStartInput, processJobs: ProcessJobOperator | undefined): Promise | undefined; /** * The TUI stream endpoint deviates from the channels-off convention: with no * `tui` section it is enabled on loopback with an ephemeral port. An explicit * `"tui": {"enabled": false}` opts out. */ export declare function createTuiChannelDriver(overrides?: TuiChannelOverrides, cronOperator?: CronOperatorRegistry): ChannelDriver; //# sourceMappingURL=tui.d.ts.map