UNPKG

@cossistant/next

Version:

Next.js-ready SDK for building AI-powered support/chat widgets. Hooks + primitives, WS-driven, TypeScript-first. Next.js-ready, Tailwind optional.

23 lines (22 loc) 757 B
import * as React$1 from "react"; //#region ../react/src/primitives/window.d.ts type WindowRenderProps = { isOpen: boolean; close: () => void; }; /** * Host container for the support experience. Handles escape * key dismissal and propagates render props so callers can take over the * layout. */ declare const SupportWindow: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & { isOpen?: boolean; onOpenChange?: (open: boolean) => void; children?: React$1.ReactNode | ((props: WindowRenderProps) => React$1.ReactNode); asChild?: boolean; closeOnEscape?: boolean; id?: string; } & React$1.RefAttributes<HTMLDivElement>>; //#endregion export { SupportWindow }; //# sourceMappingURL=window.d.ts.map