@hasna/projects
Version:
High-level project management CLI, MCP server, SDK, and AI SDK agent loop for coding agents
23 lines • 793 B
TypeScript
/** @jsxImportSource @opentui/solid */
import { type ParentProps } from "solid-js";
export type ToastTone = "info" | "success" | "warning" | "error";
export interface ToastInput {
title?: string;
message: string;
tone?: ToastTone;
duration?: number;
}
declare function createToastStore(): {
readonly current: (ToastInput & {
id: number;
tone: ToastTone;
}) | null;
show(input: ToastInput): void;
clear: () => void;
};
type ToastContextValue = ReturnType<typeof createToastStore>;
export declare function ToastProvider(props: ParentProps): import("solid-js").JSX.Element;
export declare function useToast(): ToastContextValue;
export declare function ToastViewport(): import("solid-js").JSX.Element;
export {};
//# sourceMappingURL=toast.d.ts.map