/** * A regularly spaced column of standalone surfaces around the docked chat input * stack. The stack owns the space between members so cards do not compound it * with component-specific margins. */ export declare const chatInputSurfaceStackClass = "chat-input-surface-stack"; /** Marks a dynamic member of the surface stack, which disappears while empty. */ export declare const chatInputSurfaceStackSlotClass = "chat-input-surface-stack-slot"; /** * A column of surfaces above a chat input - notices, the goal banner, the todo * list, artifacts, the working set - plus the input itself. * * A docked surface leaves its bottom edge open, and whatever follows it squares * its top corners, so a run of them looks like one surface. The stack works that * out, so no member needs to know which of its neighbours are on screen. */ export declare const chatInputStackClass = "chat-input-stack"; /** * Marks an element as a slot the stack manages. Slots are hidden while they * show nothing, so a producer does not need its own rule for that. Members that * are always present - the input, a workspace picker - are left unmarked. */ export declare const chatInputStackSlotClass = "chat-input-stack-slot"; /** What a slot is showing. This is all a slot has to report. */ export declare enum ChatInputStackSlot { /** Nothing. Ignored, so a hidden slot can sit anywhere in the order. */ Empty = 0, /** Content that joins the surface below, which continues the run. */ Docked = 1, /** * Content that closes its own box - an onboarding card, the composer - so the * run stops here. It can still join a run above it. */ Standalone = 2 } /** * Report what a slot is showing. * * Does not touch `display`; hosts do that in their own CSS using these classes. * Setting it here would blank the element when passed something that is not a * slot. */ export declare function setChatInputStackSlot(slot: HTMLElement | null | undefined, state: ChatInputStackSlot): void; /** Whether a slot is showing anything. */ export declare function isChatInputStackSlotShowing(slot: HTMLElement): boolean; /** * Report the input's focus to the stack, so a surface docked to it carries the * focus ring across the join. * * Reported up rather than read back down with `:has()`. The stack contains * every surface above the input, and that is where notices, todos and artifacts * render, so a selector that inspects the subtree is re-evaluated far more * often than this state actually changes. */ export declare function setChatInputStackInputFocused(input: HTMLElement, focused: boolean): void; /** Report the input's progress border, which dims the focus ring it shares. */ export declare function setChatInputStackInputWorking(input: HTMLElement, working: boolean): void; /** * Recompute a stack after its children change. Slots report for themselves, but * nothing reports for a child being added, and hosts often dock a notice before * rendering the surface it docks to. */ export declare function refreshChatInputStack(stack: HTMLElement | null | undefined): void;