/** * Hook optimized for team search dropdowns * * Fetches all user teams (excludes system admin team) with search support. * Returns up to 100 teams - suitable for dropdown/combobox use. * * For full pagination support, use useAdminTeams instead. * For current user's teams only, use useUserTeams instead. * * @param search - Search term (filters by team name or owner email) * @param enabled - Whether the query should run (default: true) * * @example * ```tsx * // Searchable team dropdown * function TeamDropdown({ onSelect }) { * const [search, setSearch] = useState('') * const debouncedSearch = useDebounce(search, 300) * * const { teams, totalCount, isLoading } = useTeamSearch(debouncedSearch) * * return ( * * * {isLoading ? ( * * ) : ( * * {teams.map(team => ( * onSelect(team.id)} * > * {team.name} ({team.owner.name}) * * ))} * * )} *

{totalCount} teams available

*
* ) * } * ``` */ export declare function useTeamSearch(search?: string, enabled?: boolean): { /** List of teams matching search */ teams: import(".").TeamWithOwner[]; /** Total count of user teams */ totalCount: number; /** Loading state */ isLoading: boolean; /** Fetching state (for search updates) */ isFetching: boolean; /** Error if any */ error: Error; }; export type UseTeamSearchReturn = ReturnType; //# sourceMappingURL=useTeamSearch.d.ts.map