import { searchPosts } from './client.ts'
import type { SearchPostsInput } from './types.ts'
/**
* Search Bluesky posts matching a query string.
* @param params.q - Search query text.
* @returns Feed search page with `posts` and optional `cursor`.
* @example
* import searchPosts from 'kody:@kody/bluesky/search-posts'
* const result = await searchPosts({ q: 'typescript', limit: 10 })
* // => { posts: [...], cursor: '...' }
*/
export default async function searchPostsEntrypoint(params: SearchPostsInput = {}) {
return await searchPosts(params)
}