import { WallPost } from '../types/wall.mjs'; interface UseWallPostsOptions { /** Endpoint that returns `{ posts: WallPost[] }`. Defaults to '/api/wall'. */ postsEndpoint?: string; /** * Poll interval in ms. Default 0 (no polling — only manual refresh). * Some demos poll posts every 10s for admins; pass 10000 in that case. */ pollMs?: number; } interface UseWallPostsResult { posts: WallPost[]; loading: boolean; refresh: () => Promise; } /** * Fetches and (optionally) polls wall posts. Returns the array, a loading * flag for the initial load, and a manual refresh handler. */ declare function useWallPosts(opts?: UseWallPostsOptions): UseWallPostsResult; export { type UseWallPostsOptions, type UseWallPostsResult, useWallPosts };