import { useQuery } from '@tanstack/react-query';
import { useSeamClient } from '../../../lib/seam/use-seam-client.js';
export function useDeviceProviders(params) {
    const { client } = useSeamClient();
    const { data, ...rest } = useQuery({
        enabled: client != null,
        queryKey: ['devices', 'list_device_providers', params],
        queryFn: async () => {
            if (client == null)
                return [];
            return await client.devices.listDeviceProviders(params);
        },
    });
    return { ...rest, deviceProviders: data };
}
//# sourceMappingURL=use-device-providers.js.map