/** * @sharpee/platform-browser/channels/prompt โ€” `prompt` channel renderer. * * Owner context: browser default. Implements ADR-165 ยง8 prompt-channel * behavior: set the input slot's prompt label. * * The `prompt` channel is replace-mode text. The renderer: * - Sets the input element's `placeholder` (so the prompt text shows * when the field is empty), and * - Updates a sibling label element if one is provided (so a "> " * prompt prefix can render outside the input). */ import type { ChannelRenderer } from '@sharpee/channel-service'; export interface PromptChannelRendererOptions { /** * Optional sibling label element that displays the prompt text * outside the input field (e.g., a `` rendering "> "). The * renderer sets its `textContent`. When omitted, only the input * placeholder is updated. */ promptLabel?: HTMLElement | null; } /** * Construct the default browser `prompt` channel renderer. * * @param input โ€” the `` element the user types into. * @param opts.promptLabel โ€” optional sibling label element. */ export declare function createPromptChannelRenderer(input: HTMLInputElement, opts?: PromptChannelRendererOptions): ChannelRenderer; //# sourceMappingURL=prompt.d.ts.map