import { useQuery } from '@tanstack/react-query';
import { useSeamClient } from '../../../lib/seam/use-seam-client.js';
export function useDeviceModels(params) {
    const { client } = useSeamClient();
    const { data, ...rest } = useQuery({
        enabled: client != null,
        queryKey: ['device_models', 'list', params],
        queryFn: async () => {
            if (client == null)
                return [];
            return await client.deviceModels.list({
                ...params,
                acknowledge_intentional_use_of_internal_api: true,
            });
        },
    });
    return { ...rest, deviceModels: data };
}
//# sourceMappingURL=use-device-models.js.map