/** * Integration seam for the current-session hub. * * The presenter owns the small adaptation from a runner's ordinary overlay-push * callback to the factory close handshake required by nested session children. * The hub itself remains pure presentation and receives no Harness context. * @module dshline/session/presenter */ import type { TuiOverlay } from '../slots.ts'; import { type CurrentSessionHubOverlaySpec } from './overlay.ts'; /** A runner-owned normal overlay stack push. */ export type CurrentSessionHubPush = (overlay: TuiOverlay) => () => void; /** Inputs needed to open one current-session hub from a session runner. */ export type CurrentSessionHubPresenterDeps = Omit & { /** Push an overlay onto the runner's normal stack and return its dismisser. */ readonly push: CurrentSessionHubPush; }; /** The current-session hub's integration API. */ export interface CurrentSessionHubPresenter { /** Open the hub and return an idempotent close function. */ readonly open: () => () => void; } /** * Create an integration API for the current-session hub. * @param deps - owner-owned reading, capabilities, callbacks, and normal stack push. * @returns an opener that keeps nested child overlays on the same normal stack. */ export declare function createCurrentSessionHubPresenter(deps: CurrentSessionHubPresenterDeps): CurrentSessionHubPresenter; //# sourceMappingURL=presenter.d.ts.map