import { ChatSendHandler } from '../core/services/ChatService'; import { IPanel } from '../core/services/PaneService'; /** * Ready-made panel descriptors for the shell's own pieces. * * Chat, terminal and settings were each nailed into a fixed place — chat on the * right, terminal along the bottom, settings behind a reserved panel id the * pane special-cased. They are now ordinary registrations with no privileges, * so they go wherever you put them: * * ```tsx * initializeShell({ * panels: [ * { id: 'files', label: 'Explorer', icon: Files, component: FileTree }, * chatPanel({ side: 'right' }), * terminalPanel({ side: 'bottom' }), * settingsPanel(), * ], * }); * ``` * * Each takes overrides, so the id, label, icon or side can change without * rebuilding the descriptor by hand. */ /** Options for {@link chatPanel}: panel overrides plus the chat's wiring. */ export type ChatPanelOptions = Partial & { /** * Answer plain messages. See `ChatSendHandler`. Without it the panel uses * the app-wide handler from `initializeShell({ chat })`, if any. */ onSend?: ChatSendHandler; /** Composer placeholder. */ placeholder?: string; }; /** * The chat pane, as a registerable panel. * * @example * ```ts * chatPanel({ side: 'bottom', onSend: async (text, chat) => chat.reply(await ask(text)) }) * ``` */ export declare const chatPanel: ({ onSend, placeholder, ...overrides }?: ChatPanelOptions) => IPanel; /** The terminal, as a registerable panel. */ export declare const terminalPanel: (overrides?: Partial) => IPanel; /** * The theme picker, as a registerable panel. * * `align: 'end'` pins it to the far group of its rail, which is where a * settings icon conventionally sits — and is now the only reason it ends up * there, rather than the pane knowing the string `"settings"`. */ export declare const settingsPanel: (overrides?: Partial) => IPanel;