export interface VendoOverlayController {
/** Whether the overlay is currently open. */
isOpen: boolean;
open(): void;
close(): void;
toggle(): void;
/** Discard the overlay's current conversation and start a fresh thread
* (ENG-221) — the headless twin of the panel's new-conversation button. */
newConversation(): void;
/** Spread onto `` to hand it this controller's state. */
overlayProps: {
open: boolean;
onOpenChange(open: boolean): void;
conversationKey: number;
};
}
/**
* Programmatic open/close for `` (ENG-220): a tiny controlled-
* state helper so hosts can wire their own triggers (keyboard shortcuts, nav
* buttons) without DOM-poking the launcher.
*
* ```tsx
* const overlay = useVendoOverlay();
* // overlay.toggle() from your own ⌘K handler…
* return ;
* ```
*/
export declare function useVendoOverlay(options?: {
defaultOpen?: boolean;
}): VendoOverlayController;