/**
* useMemoryStack Hook
* Access the MemoryStack client and context from any component
*/
import { MemoryStackContextValue } from '../context/MemoryStackContext';
import { MemoryStackClient } from '../client';
/**
* Hook to access the MemoryStack client and context
*
* @example
* ```tsx
* function MyComponent() {
* const { client, isOnline, pendingOperations, syncPending } = useMemoryStack();
*
* const handleAddMemory = async () => {
* if (!client) return;
* await client.add("User prefers dark mode");
* };
*
* return (
*
* Online: {isOnline ? 'Yes' : 'No'}
* Pending: {pendingOperations}
*
*
* );
* }
* ```
*/
export declare function useMemoryStack(): MemoryStackContextValue;
/**
* Hook to access just the MemoryStack client
* Throws an error if used outside of provider
*
* @example
* ```tsx
* function MyComponent() {
* const client = useMemoryStackClient();
*
* const handleSearch = async () => {
* const results = await client.search("user preferences");
* console.log(results);
* };
*
* return ;
* }
* ```
*/
export declare function useMemoryStackClient(): MemoryStackClient;
/**
* Hook to check if device is online
*
* @example
* ```tsx
* function OnlineIndicator() {
* const isOnline = useIsOnline();
* return {isOnline ? '🟢' : '🔴'};
* }
* ```
*/
export declare function useIsOnline(): boolean;
/**
* Hook to get pending operations count
*
* @example
* ```tsx
* function PendingBadge() {
* const pendingCount = usePendingOperations();
* if (pendingCount === 0) return null;
* return ;
* }
* ```
*/
export declare function usePendingOperations(): number;
export default useMemoryStack;
//# sourceMappingURL=useMemoryStack.d.ts.map