UNPKG

@hasna/projects

Version:

High-level project management CLI, MCP server, SDK, and AI SDK agent loop for coding agents

29 lines • 993 B
/** @jsxImportSource @opentui/solid */ import { type Accessor, type JSX, type ParentProps } from "solid-js"; export type DialogSize = "medium" | "large" | "xlarge"; export interface DialogEntry { id: number; size: DialogSize; element: () => JSX.Element; onClose?: () => void; } declare function createDialogStore(): { stack: Accessor<DialogEntry[]>; readonly current: DialogEntry | null; push(element: () => JSX.Element, options?: { size?: DialogSize; onClose?: () => void; }): void; replace(element: () => JSX.Element, options?: { size?: DialogSize; onClose?: () => void; }): void; pop(): boolean; clear(): void; }; type DialogContextValue = ReturnType<typeof createDialogStore>; export declare function DialogProvider(props: ParentProps): JSX.Element; export declare function useDialog(): DialogContextValue; export declare function DialogViewport(): JSX.Element; export {}; //# sourceMappingURL=dialog.d.ts.map