import type { OpenCodeClient } from "./client.js"; export interface DialogUI { readonly dialog: { select(options: { title: string; placeholder?: string; options: readonly { title: string; value: Value; description?: string; footer?: string; }[]; }): Promise; confirm(options: { title: string; message: string; }): Promise; alert(options: { title: string; message: string; }): Promise; }; } export interface TuiContext { readonly options: Readonly>; readonly location: { readonly directory: string; } | undefined; readonly client: OpenCodeClient; readonly data: { readonly location: { default(): { readonly directory: string; }; }; readonly session?: { root(sessionID: string): string; }; readonly listen?: (handler: (event: { details: { type: string; data?: Record; }; }) => void) => () => void; }; readonly keymap?: { layer(input: () => { mode?: string; commands?: readonly KeymapCommand[]; }): void; }; readonly ui: DialogUI & { readonly router?: { current(): { type: string; sessionID?: string; }; }; readonly tabs?: { list(): readonly { sessionID: string; }[]; }; readonly toast: { show(options: { title?: string; message: string; variant?: "info" | "success" | "warning" | "error"; duration?: number; }): void; }; readonly slot?: (claim: { append: "app" | "home.footer.status" | "prompt.footer.status"; render: () => unknown; }) => () => void; }; readonly theme?: { readonly text: { readonly base: unknown; readonly muted: unknown; readonly feedback: { readonly success: { readonly base: unknown; }; }; }; }; } export interface KeymapCommand { readonly id?: string; readonly title?: string; readonly description?: string; readonly group?: string; readonly palette?: true; readonly slash?: { readonly name: string; readonly aliases?: string[]; }; readonly run: () => false | Promise | undefined; } export declare function setupConnector(context: TuiContext): Promise<() => Promise>; //# sourceMappingURL=setup.d.ts.map