UNPKG

@automattic/agenttic-ui

Version:

UI components for the Agenttic framework

11 lines 459 B
/** * Custom hook for managing multiple named timeouts with automatic cleanup * Prevents memory leaks and race conditions in timeout management */ export declare function useMultiTimeout(): { setNamedTimeout: (name: string, callback: () => void, delay: number) => NodeJS.Timeout; clearNamedTimeout: (name: string) => void; clearAllTimeouts: () => void; hasTimeout: (name: string) => boolean; }; //# sourceMappingURL=useMultiTimeout.d.ts.map